mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
fixed length and upper case log level tags
This commit is contained in:
parent
4371092309
commit
3a40f0c34d
@ -81,7 +81,10 @@ typedef enum
|
||||
off = 6
|
||||
} level_enum;
|
||||
|
||||
static const char* level_names[] { "trace", "debug", "info", "warning", "error", "critical", "off" };
|
||||
#if !defined(SPDLOG_LEVEL_NAMES)
|
||||
#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warning", "error", "critical", "off" };
|
||||
#endif
|
||||
static const char* level_names[] SPDLOG_LEVEL_NAMES
|
||||
|
||||
static const char* short_level_names[] { "T", "D", "I", "W", "E", "C", "O" };
|
||||
|
||||
|
@ -132,3 +132,10 @@
|
||||
//
|
||||
// #define SPDLOG_ENABLE_MESSAGE_COUNTER
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to enable user defined tag names
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAMES { " TRACE", " DEBUG", " INFO",
|
||||
// " WARNING", " ERROR", "CRITICAL", "OFF" };
|
||||
///////////////////////////////////////////////////////////////////////////////
|
Loading…
Reference in New Issue
Block a user