mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
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.
This commit is contained in:
parent
d52e825bbc
commit
9858d4e918
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user