these macros are used to set the log levels
The level priority is defined as follow (in ascending order) :
debug
info
warning
error
critical
trace
Any level priority reset will enable logs for that level and levels above
◆ LOG_SET_CRITICAL_LEVEL
#define LOG_SET_CRITICAL_LEVEL |
( |
| ) |
|
Value:{ \
Log::logger()->set_level( spdlog::level::critical ); \
}
◆ LOG_SET_DEBUG_LEVEL
#define LOG_SET_DEBUG_LEVEL |
( |
| ) |
|
Value:{ \
Log::logger()->set_level( spdlog::level::debug ); \
}
◆ LOG_SET_ERROR_LEVEL
#define LOG_SET_ERROR_LEVEL |
( |
| ) |
|
Value:{ \
Log::logger()->set_level( spdlog::level::err ); \
}
◆ LOG_SET_INFO_LEVEL
#define LOG_SET_INFO_LEVEL |
( |
| ) |
|
Value:{ \
Log::logger()->set_level( spdlog::level::info ); \
}
◆ LOG_SET_TRACE_LEVEL
#define LOG_SET_TRACE_LEVEL |
( |
| ) |
|
Value:{ \
Log::logger()->set_level( spdlog::level::trace ); \
}
◆ LOG_SET_WARNING_LEVEL
#define LOG_SET_WARNING_LEVEL |
( |
| ) |
|
Value:{ \
Log::logger()->set_level( spdlog::level::warn ); \
}