24 #ifndef ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H 25 #define ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H 34 #ifndef NO_MULTI_THREADING 100 std::string get_time()
102 auto now = std::chrono::system_clock::now();
103 auto time = std::chrono::system_clock::to_time_t(now);
106 char buf[100] = { 0 };
107 std::strftime(buf,
sizeof(buf),
"%d-%m-%Y %I:%M:%S", std::localtime(&time));
122 #ifndef NO_MULTI_THREADING void decorate(LogMsg &log_msg) override
Decorates log message.
std::string angle_wrap_value(const T &val)
Wraps a value with angles and returns the string.
Copyright (c) 2017-2021 Arm Limited.
void decorate(LogMsg &log_msg) override
Decorates log message.
const std::string & string_from_log_level(LogLevel log_level)
Translates a given log level to a string.
StringDecorator(const std::string &str)
Defaults constructor.
virtual ~IDecorator()=default
Default Destructor.
LogLevel log_level_
Logging level.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void decorate(LogMsg &log_msg)=0
Decorates log message.
void decorate(LogMsg &log_msg) override
Decorates log message.
void decorate(LogMsg &log_msg) override
Decorates log message.
std::string raw_
Log message.
Log message decorator interface.