Agents 0.0.2
Edge AI Agents SDK
|
Logger utility class that wraps spdlog functionality. More...
#include <logger.h>
Public Types | |
enum class | Level { TRACE , DEBUG , INFO , WARN , ERROR , CRITICAL , OFF } |
The log level. More... | |
Static Public Member Functions | |
static void | init (Level level=Level::INFO) |
Initialize the logger. | |
static void | setLevel (Level level) |
Set the log level. | |
static spdlog::level::level_enum | toSpdlogLevel (Level level) |
Convert Level enum to spdlog level. | |
template<typename... Args> | |
static void | trace (fmt::format_string< Args... > fmt, Args &&... args) |
Log a message at trace level. | |
template<typename... Args> | |
static void | debug (fmt::format_string< Args... > fmt, Args &&... args) |
Log a message at debug level. | |
template<typename... Args> | |
static void | info (fmt::format_string< Args... > fmt, Args &&... args) |
Log a message at info level. | |
template<typename... Args> | |
static void | warn (fmt::format_string< Args... > fmt, Args &&... args) |
Log a message at warn level. | |
template<typename... Args> | |
static void | error (fmt::format_string< Args... > fmt, Args &&... args) |
Log a message at error level. | |
template<typename... Args> | |
static void | critical (fmt::format_string< Args... > fmt, Args &&... args) |
Log a message at critical level. | |
Logger utility class that wraps spdlog functionality.
|
strong |
|
inlinestatic |
Log a message at critical level.
fmt | The format string |
args | The arguments |
|
inlinestatic |
Log a message at debug level.
fmt | The format string |
args | The arguments |
|
inlinestatic |
Log a message at error level.
fmt | The format string |
args | The arguments |
|
inlinestatic |
Log a message at info level.
fmt | The format string |
args | The arguments |
|
static |
Initialize the logger.
level | The log level |
|
static |
|
static |
|
inlinestatic |
Log a message at trace level.
fmt | The format string |
args | The arguments |
|
inlinestatic |
Log a message at warn level.
fmt | The format string |
args | The arguments |