From e7cf25a1c0f73a697f869c62ddcecc2561bec1e3 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 25 Nov 2017 15:41:55 +0200 Subject: [PATCH] fixed issue #562 --- include/spdlog/common.h | 4 ++-- include/spdlog/tweakme.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 14fbb7e0..91d30dc2 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -81,9 +81,9 @@ typedef enum } level_enum; #if !defined(SPDLOG_LEVEL_NAMES) -#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warning", "error", "critical", "off" }; +#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warning", "error", "critical", "off" } #endif -static const char* level_names[] SPDLOG_LEVEL_NAMES +static const char* level_names[] SPDLOG_LEVEL_NAMES; static const char* short_level_names[] { "T", "D", "I", "W", "E", "C", "O" }; diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h index 354fcebc..191b4048 100644 --- a/include/spdlog/tweakme.h +++ b/include/spdlog/tweakme.h @@ -142,7 +142,7 @@ /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// -// Uncomment to enable user defined tag names +// Uncomment to customize level names (e.g. "MT TRACE") // -// #define SPDLOG_LEVEL_NAMES { "TRACE", "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL", "OFF" }; +// #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING", "MY ERROR", "MY CRITICAL", "OFF" } ///////////////////////////////////////////////////////////////////////////////