Class Logger
Defined in File logger.hpp
Class Documentation
-
class Logger
Provides static logging functionality with configurable callback and log level.
The Logger class allows setting a user-defined logging callback that handles messages of a specific severity level. This class is not thread-safe.
Public Types
Public Static Functions
-
static void set_log_callback(LogCallback callback)
Sets the global logging callback.
Note
This method is not thread-safe.
- Parameters:
callback – The function to call when logging messages.
-
static void set_log_level(LogLevel level)
Sets the minimum log level to be reported.
- Parameters:
level – The minimum severity level to log.
-
static void set_log_callback(LogCallback callback)