wincolor color formatting support

This commit is contained in:
gabime
2018-04-06 03:04:18 +03:00
parent c8610d9a86
commit d040ab93ea
3 changed files with 29 additions and 9 deletions

View File

@@ -58,8 +58,8 @@ int main(int, char *[])
daily_logger->info(123.44);
// Customize msg format for all messages
spd::set_pattern("*** [%H:%M:%S %z] [thread %t] %v ***");
rotating_logger->info("This is another message with custom format");
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 '%$')");
// Runtime log levels
spd::set_level(spd::level::info); // Set global log level to info