24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_LOGGING_HELPERS_H
25 #define ARM_COMPUTE_LOGGING_HELPERS_H
48 template <
typename... Ts>
52 auto char_str = std::make_unique<char[]>(size);
54 return std::string(char_str.get(), char_str.get() + size - 1);
65 std::ostringstream
ss;
66 ss <<
"[" << val <<
"]";
LogLevel
Logging level enumeration.
int snprintf(char *s, std::size_t n, const char *fmt, Ts &&...args)
Loads the data from the given location, converts them to character string equivalents and writes the ...
std::stringstream ss(mlgo_str)
Copyright (c) 2017-2024 Arm Limited.
std::string string_with_format(const std::string &fmt, Ts &&...args)
Create a string given a format.
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.