mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update README.md
This commit is contained in:
parent
260a74509a
commit
4a25802312
10
README.md
10
README.md
@ -121,11 +121,11 @@ int main(int, char*[])
|
|||||||
rotating_logger->info("This is another message with custom format");
|
rotating_logger->info("This is another message with custom format");
|
||||||
|
|
||||||
|
|
||||||
// Runtime log levels
|
// Runtime log levels
|
||||||
spd::set_level(spd::level::info); //Set global log level to info
|
spd::set_level(spd::level::info); //Set global log level to info
|
||||||
console->debug("This message shold not be displayed!");
|
console->debug("This message shold not be displayed!");
|
||||||
console->set_level(spd::level::debug); // Set specific logger's log level
|
console->set_level(spd::level::debug); // Set specific logger's log level
|
||||||
console->debug("This message shold be displayed..");
|
console->debug("This message shold be displayed..");
|
||||||
|
|
||||||
// Compile time log levels
|
// Compile time log levels
|
||||||
// define SPDLOG_DEBUG_ON or SPDLOG_TRACE_ON
|
// define SPDLOG_DEBUG_ON or SPDLOG_TRACE_ON
|
||||||
|
Loading…
Reference in New Issue
Block a user