24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_LOGGING_LOGGER_REGISTRY_H
25 #define ARM_COMPUTE_LOGGING_LOGGER_REGISTRY_H
35 #include <unordered_map>
60 const std::vector<std::shared_ptr<Printer>> &printers = {std::make_shared<StdPrinter>()});
72 std::shared_ptr<Logger>
logger(
const std::string &
name);
79 const std::vector<std::shared_ptr<Printer>> &printers = {
80 std::make_shared<StdPrinter>()});
88 std::unordered_map<std::string, std::shared_ptr<Logger>> _loggers;
89 static std::set<std::string> _reserved_loggers;
void create_reserved_loggers(LogLevel log_level=LogLevel::INFO, const std::vector< std::shared_ptr< Printer >> &printers={ std::make_shared< StdPrinter >()})
Creates reserved library loggers.
LogLevel
Logging level enumeration.
std::shared_ptr< Logger > logger(const std::string &name)
Returns a logger instance.
std::mutex Mutex
Wrapper of Mutex data-object.
static LoggerRegistry & get()
Gets registry instance.
void remove_logger(const std::string &name)
Remove a logger.
Copyright (c) 2017-2024 Arm Limited.
Registry class holding all the instantiated loggers.
void create_logger(const std::string &name, LogLevel log_level=LogLevel::INFO, const std::vector< std::shared_ptr< Printer >> &printers={std::make_shared< StdPrinter >()})
Creates a logger.
@ INFO
Information log level.