docs: details about how compile time macros work (#2981)

This commit is contained in:
Enzo Gaban
2024-01-16 01:39:45 -03:00
committed by GitHub
parent 8979f7fb2a
commit 696db97f67

View File

@@ -79,7 +79,8 @@ int main()
spdlog::set_pattern("[%H:%M:%S %z] [%n] [%^---%L---%$] [thread %t] %v");
// 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_DEBUG("Some debug message");
}