24 #ifndef __ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H__ 25 #define __ARM_COMPUTE_LOGGING_LOG_MSG_DECORATORS_H__ 97 std::string get_time()
99 auto now = std::chrono::system_clock::now();
100 auto time = std::chrono::system_clock::to_time_t(now);
102 char buf[100] = { 0 };
103 std::strftime(buf,
sizeof(buf),
"%d-%m-%Y %I:%M:%S", std::localtime(&time));
118 #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.
const std::string & string_from_log_level(LogLevel log_level)
Translates a given log level to a string.
This file contains all available output stages for GEMMLowp on OpenCL.
void decorate(LogMsg &log_msg) override
Decorates log message.
StringDecorator(const std::string &str)
Defaults constructor.
virtual ~IDecorator()=default
Default Destructor.
LogLevel log_level_
Logging level.
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.