37#define LOG_MSG(level, msg) \
39 std::ostringstream oss; \
41 utils::Logger::log(level, oss.str()); \
49#define LOG_TRACE(msg) LOG_MSG(utils::TRACE, msg)
56#define LOG_DEBUG(msg) LOG_MSG(utils::DEBUG, msg)
63#define LOG_INFO(msg) LOG_MSG(utils::INFO, msg)
70#define LOG_WARN(msg) LOG_MSG(utils::WARNING, msg)
77#define LOG_ERROR(msg) LOG_MSG(utils::ERROR, msg)
84#define LOG_FATAL(msg) LOG_MSG(utils::FATAL, msg)
static LogLevel threshold_
Definition Logger.hpp:27
static void setLevel(LogLevel)
Definition Logger.cpp:52
static void log(LogLevel, std::string const &)
Definition Logger.cpp:32
LogLevel
Defines the severity levels for log messages.
Definition Logger.hpp:12
@ TRACE
Fine-grained messages, typically for detailed debugging.
Definition Logger.hpp:13
@ DEBUG
Information useful for developers during debugging.
Definition Logger.hpp:14
@ INFO
Informational messages about application progress.
Definition Logger.hpp:15
@ ERROR
An error that occurred but the application can recover from.
Definition Logger.hpp:17
@ FATAL
A critical error that will likely lead to termination.
Definition Logger.hpp:18
@ WARNING
Indicates a potential issue that is not a critical error.
Definition Logger.hpp:16