mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 06:32:06 +08:00
removed level defines
This commit is contained in:
parent
bac8fc24bb
commit
30326dad37
@ -57,26 +57,18 @@ using level_t = std::atomic_int;
|
|||||||
#endif
|
#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
|
//Log level enum
|
||||||
namespace level
|
namespace level
|
||||||
{
|
{
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
trace = SPDLOG_LEVEL_TRACE,
|
trace = 0,
|
||||||
debug = SPDLOG_LEVEL_DEBUG,
|
debug = 1,
|
||||||
info = SPDLOG_LEVEL_INFO,
|
info = 2,
|
||||||
warn = SPDLOG_LEVEL_WARN,
|
warn = 3,
|
||||||
err = SPDLOG_LEVEL_ERR,
|
err = 4,
|
||||||
critical = SPDLOG_LEVEL_CRIT,
|
critical = 5,
|
||||||
off = SPDLOG_LEVEL_OFF
|
off = 6
|
||||||
} level_enum;
|
} level_enum;
|
||||||
|
|
||||||
static const char* level_names[] { "trace", "debug", "info", "warning", "error", "critical", "off"};
|
static const char* level_names[] { "trace", "debug", "info", "warning", "error", "critical", "off"};
|
||||||
|
Loading…
Reference in New Issue
Block a user