From 9858d4e918fae3af7cb402fd76d7ceb4c2020296 Mon Sep 17 00:00:00 2001 From: Mike Lezhnin Date: Fri, 20 Dec 2019 11:05:38 +0100 Subject: [PATCH] Fix a small problem in the basic example The line ``` SPDLOG_TRACE("Some trace message with param {}", {}); ``` which normally is discarded at the compile time since by deafult `SPDLOG_ACTIVE_LEVEL` is at `SPDLOG_LEVEL_INFO`. If however, one goes to `tweak.me` and sets ``` #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE ``` suddenly the basic example does not compile any more. This commit fixes the potential problem. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f45b9a0..1dd959eb 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ int main() // Compile time log levels // define SPDLOG_ACTIVE_LEVEL to desired level - SPDLOG_TRACE("Some trace message with param {}", {}); + SPDLOG_TRACE("Some trace message with param {}", 42); SPDLOG_DEBUG("Some debug message"); // Set the default logger to file logger