24 #ifndef __ARM_COMPUTE_LOGGING_LOGGER_REGISTRY_H__ 25 #define __ARM_COMPUTE_LOGGING_LOGGER_REGISTRY_H__ 34 #include <unordered_map> 58 std::vector<std::shared_ptr<Printer>> printers = { std::make_shared<StdPrinter>() });
70 std::shared_ptr<Logger>
logger(
const std::string &name);
77 std::vector<std::shared_ptr<Printer>> printers = { std::make_shared<StdPrinter>() });
85 std::unordered_map<std::string, std::shared_ptr<Logger>> _loggers;
86 static std::set<std::string> _reserved_loggers;
std::mutex Mutex
Wrapper of Mutex data-object.
This file contains all available output stages for GEMMLowp on OpenCL.
Registry class holding all the instantiated loggers.
void create_logger(const std::string &name, LogLevel log_level=LogLevel::INFO, std::vector< std::shared_ptr< Printer >> printers={std::make_shared< StdPrinter >()})
Creates a logger.
void create_reserved_loggers(LogLevel log_level=LogLevel::INFO, std::vector< std::shared_ptr< Printer >> printers={std::make_shared< StdPrinter >()})
Creates reserved library loggers.
void remove_logger(const std::string &name)
Remove a logger.
std::shared_ptr< Logger > logger(const std::string &name)
Returns a logger instance.
LogLevel
Logging level enumeration.