Go to the documentation of this file. 24 #ifndef __ARM_COMPUTE_LOGGING_MACROS_H__ 25 #define __ARM_COMPUTE_LOGGING_MACROS_H__ 31 #ifdef ARM_COMPUTE_LOGGING_ENABLED 33 #define ARM_COMPUTE_LOG_MSG(logger_name, log_level, msg) \ 36 auto __logger = arm_compute::logging::LoggerRegistry::get().logger(logger_name); \ 37 if(__logger != nullptr) \ 39 __logger->log(log_level, msg); \ 43 #define ARM_COMPUTE_LOG_MSG_WITH_FORMAT(logger_name, log_level, fmt, ...) \ 46 auto __logger = arm_compute::logging::LoggerRegistry::get().logger(logger_name); \ 47 if(__logger != nullptr) \ 49 __logger->log(log_level, fmt, __VA_ARGS__); \ 53 #define ARM_COMPUTE_LOG_STREAM(logger_name, log_level, stream) \ 56 auto __logger = arm_compute::logging::LoggerRegistry::get().logger(logger_name); \ 57 if(__logger != nullptr) \ 59 std::ostringstream s; \ 61 __logger->log(log_level, s.str()); \ 67 #define ARM_COMPUTE_LOG_MSG(logger_name, log_level, msg) 68 #define ARM_COMPUTE_LOG_MSG_WITH_FORMAT(logger_name, log_level, fmt, ...) 69 #define ARM_COMPUTE_LOG_STREAM(logger_name, log_level, stream)