Macro to change min-log-level.
This commit is contained in:
parent
2f4db7ffaf
commit
44173ffdbc
|
|
@ -81,6 +81,7 @@ struct Logger {
|
|||
|
||||
extern Logger g_logger;
|
||||
|
||||
#define MIN_LOG_LEVEL(LOG_LVL) g_logger.set_minimum_logging_level(LOG_LVL)
|
||||
#define ERROR(...) g_logger.log<Logger::LogType::eError>(fmt::format(__VA_ARGS__), __FILE__, __LINE__)
|
||||
#define WARN(...) g_logger.log<Logger::LogType::eWarning>(fmt::format(__VA_ARGS__), __FILE__, __LINE__)
|
||||
#define INFO(...) g_logger.log<Logger::LogType::eInfo>(fmt::format(__VA_ARGS__), __FILE__, __LINE__)
|
||||
|
|
|
|||
Loading…
Reference in New Issue