removed level defines
This commit is contained in:
parent
bac8fc24bb
commit
30326dad37
@ -57,26 +57,18 @@ using level_t = std::atomic_int;
|
||||
#endif
|
||||
|
||||
|
||||
#define SPDLOG_LEVEL_TRACE 0
|
||||
#define SPDLOG_LEVEL_DEBUG 1
|
||||
#define SPDLOG_LEVEL_INFO 2
|
||||
#define SPDLOG_LEVEL_WARN 3
|
||||
#define SPDLOG_LEVEL_ERR 4
|
||||
#define SPDLOG_LEVEL_CRIT 5
|
||||
#define SPDLOG_LEVEL_OFF 6
|
||||
|
||||
//Log level enum
|
||||
namespace level
|
||||
{
|
||||
typedef enum
|
||||
{
|
||||
trace = SPDLOG_LEVEL_TRACE,
|
||||
debug = SPDLOG_LEVEL_DEBUG,
|
||||
info = SPDLOG_LEVEL_INFO,
|
||||
warn = SPDLOG_LEVEL_WARN,
|
||||
err = SPDLOG_LEVEL_ERR,
|
||||
critical = SPDLOG_LEVEL_CRIT,
|
||||
off = SPDLOG_LEVEL_OFF
|
||||
trace = 0,
|
||||
debug = 1,
|
||||
info = 2,
|
||||
warn = 3,
|
||||
err = 4,
|
||||
critical = 5,
|
||||
off = 6
|
||||
} level_enum;
|
||||
|
||||
static const char* level_names[] { "trace", "debug", "info", "warning", "error", "critical", "off"};
|
||||
|
Loading…
Reference in New Issue
Block a user