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