mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
wincolor color formatting support
This commit is contained in:
parent
d040ab93ea
commit
2f7fdf2663
@ -59,7 +59,8 @@ int main(int, char *[])
|
|||||||
|
|
||||||
// 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");
|
||||||
console->info("This a message with custom format (and custom color range between the '%^' and '%$')");
|
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
|
||||||
spd::set_level(spd::level::info); // Set global log level to info
|
spd::set_level(spd::level::info); // Set global log level to info
|
||||||
|
Loading…
Reference in New Issue
Block a user