stabilized logger classes
This commit is contained in:
@@ -8,15 +8,14 @@ namespace matador::logger {
|
||||
/**
|
||||
* Represents all available log levels
|
||||
*/
|
||||
enum class log_level
|
||||
{
|
||||
LVL_FATAL, /**< If a serious error occurred, use FATAL level */
|
||||
LVL_ERROR, /**< On error use ERROR level */
|
||||
LVL_WARN, /**< Warnings should use WARN level */
|
||||
LVL_INFO, /**< Information should go with INFO level */
|
||||
LVL_DEBUG, /**< Debug output should use DEBUG level */
|
||||
LVL_TRACE, /**< Trace information should use TRACE level */
|
||||
LVL_ALL /**< This level represents all log levels and should be used for logging */
|
||||
enum class log_level {
|
||||
Fatal, /**< If a serious error occurred, use FATAL level */
|
||||
Error, /**< On error use ERROR level */
|
||||
Warn, /**< Warnings should use WARN level */
|
||||
Info, /**< Information should go with INFO level */
|
||||
Debug, /**< Debug output should use DEBUG level */
|
||||
Trace, /**< Trace information should use TRACE level */
|
||||
All /**< This level represents all log levels and should be used for logging */
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -31,10 +30,9 @@ std::ostream& operator<<(std::ostream &os, log_level lvl);
|
||||
|
||||
/// @cond MATADOR_DEV
|
||||
|
||||
struct log_level_range
|
||||
{
|
||||
log_level min_level = log_level::LVL_INFO;
|
||||
log_level max_level = log_level::LVL_FATAL;
|
||||
struct log_level_range {
|
||||
log_level min_level = log_level::Info;
|
||||
log_level max_level = log_level::Fatal;
|
||||
};
|
||||
|
||||
/// @endcond
|
||||
|
||||
Reference in New Issue
Block a user