diff options
Diffstat (limited to 'arm_compute/core/utils/logging/LoggerRegistry.h')
-rw-r--r-- | arm_compute/core/utils/logging/LoggerRegistry.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arm_compute/core/utils/logging/LoggerRegistry.h b/arm_compute/core/utils/logging/LoggerRegistry.h index 7c9931a260..4e52a10935 100644 --- a/arm_compute/core/utils/logging/LoggerRegistry.h +++ b/arm_compute/core/utils/logging/LoggerRegistry.h @@ -27,6 +27,7 @@ #include "arm_compute/core/utils/logging/Logger.h" #include "arm_compute/core/utils/logging/Printers.h" #include "arm_compute/core/utils/logging/Types.h" + #include "support/Mutex.h" #include <memory> @@ -54,8 +55,9 @@ public: * @param[in] log_level Logger's log level. Defaults to INFO * @param[in] printers Printers to attach to the system loggers. Defaults with a @ref StdPrinter. */ - void create_logger(const std::string &name, LogLevel log_level = LogLevel::INFO, - const std::vector<std::shared_ptr<Printer>> &printers = { std::make_shared<StdPrinter>() }); + void create_logger(const std::string &name, + LogLevel log_level = LogLevel::INFO, + const std::vector<std::shared_ptr<Printer>> &printers = {std::make_shared<StdPrinter>()}); /** Remove a logger * * @param name Logger's name @@ -74,16 +76,17 @@ public: * @param[in] printers (Optional) Printers to attach to the system loggers. Defaults with a @ref StdPrinter. */ void create_reserved_loggers(LogLevel log_level = LogLevel::INFO, - const std::vector<std::shared_ptr<Printer>> &printers = { std::make_shared<StdPrinter>() }); + const std::vector<std::shared_ptr<Printer>> &printers = { + std::make_shared<StdPrinter>()}); private: /** Default constructor */ LoggerRegistry(); private: - arm_compute::Mutex _mtx; + arm_compute::Mutex _mtx; std::unordered_map<std::string, std::shared_ptr<Logger>> _loggers; - static std::set<std::string> _reserved_loggers; + static std::set<std::string> _reserved_loggers; }; } // namespace logging } // namespace arm_compute |