demo the use of multiple color delimiters in pattern

pull/2814/head
drakbar 2 years ago
parent de87db40d6
commit 7410b194b1

@ -52,7 +52,7 @@ int main(int, char *[])
spdlog::debug("This message should be displayed..");
// Customize msg format for all loggers
spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [thread %t] %v");
spdlog::set_pattern("[%^%H:%M:%S %z%$] [%^%L%$] [thread %t] %^%v%$");
spdlog::info("This an info message with custom format");
spdlog::set_pattern("%+"); // back to default format
spdlog::set_level(spdlog::level::info);

Loading…
Cancel
Save