|
Agents 1.6.9
Edge AI Agents SDK
|
Logger utility class that wraps spdlog functionality. More...
#include <logger.h>
Public Types | |
| enum class | Level { TRACE , DEBUG , INFO , WARN , ERR , 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. | |
| static void | chunk (const std::string &text) |
| Write a raw chunk of text to stdout without any log prefix or newline. Flushes immediately — intended for streaming token output. Respects the current log level: suppressed when level > INFO. | |
Logger utility class that wraps spdlog functionality.
|
strong |
|
inlinestatic |
Write a raw chunk of text to stdout without any log prefix or newline. Flushes immediately — intended for streaming token output. Respects the current log level: suppressed when level > INFO.
| text | The text chunk to write |
|
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 |