mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
add macros for overriding the individual level names
This commit is contained in:
@@ -87,12 +87,54 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize level names (e.g. "MT TRACE")
|
||||
// Uncomment to customize level names (e.g. "MY TRACE")
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING",
|
||||
// "MY ERROR", "MY CRITICAL", "OFF" }
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize the trace level name
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAME_TRACE "MY TRACE"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize the debug level name
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAME_DEBUG "MY DEBUG"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize the info level name
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAME_INFO "MY INFO"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize the warning level name
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAME_WARNING "MY WARNING"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize the error level name
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAME_ERROR "MY ERROR"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize the critical level name
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAME_CRITICAL "MY CRITICAL"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize the off level name
|
||||
//
|
||||
// #define SPDLOG_LEVEL_NAME_OFF "MY OFF"
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Uncomment to customize short level names (e.g. "MT")
|
||||
// These can be longer than one character.
|
||||
|
Reference in New Issue
Block a user