mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
docs: details about how compile time macros work (#2981)
This commit is contained in:
parent
8979f7fb2a
commit
696db97f67
@ -79,7 +79,8 @@ int main()
|
|||||||
spdlog::set_pattern("[%H:%M:%S %z] [%n] [%^---%L---%$] [thread %t] %v");
|
spdlog::set_pattern("[%H:%M:%S %z] [%n] [%^---%L---%$] [thread %t] %v");
|
||||||
|
|
||||||
// Compile time log levels
|
// Compile time log levels
|
||||||
// define SPDLOG_ACTIVE_LEVEL to desired level
|
// Note that this does not change the current log level, it will only
|
||||||
|
// remove (depending on SPDLOG_ACTIVE_LEVEL) the call on the release code.
|
||||||
SPDLOG_TRACE("Some trace message with param {}", 42);
|
SPDLOG_TRACE("Some trace message with param {}", 42);
|
||||||
SPDLOG_DEBUG("Some debug message");
|
SPDLOG_DEBUG("Some debug message");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user