mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 18:41:35 +08:00
Update README.md
This commit is contained in:
parent
84c7f927c2
commit
21d437fbf5
@ -120,8 +120,9 @@ int main(int, char*[])
|
|||||||
daily_logger->info(123.44);
|
daily_logger->info(123.44);
|
||||||
|
|
||||||
// Customize msg format for all messages
|
// Customize msg format for all messages
|
||||||
spd::set_pattern("*** [%H:%M:%S %z] [thread %t] %v ***");
|
spd::set_pattern("[%^+++%$] [%H:%M:%S %z] [thread %t] %v");
|
||||||
rotating_logger->info("This is another message with custom format");
|
console->info("This an info message with custom format (and custom color range between the '%^' and '%$')");
|
||||||
|
console->error("This an error message with custom format (and custom color range between the '%^' and '%$')");
|
||||||
|
|
||||||
|
|
||||||
// Runtime log levels
|
// Runtime log levels
|
||||||
|
Loading…
Reference in New Issue
Block a user