From 7410b194b103d325b3d2e0ca10acdbbc878735a0 Mon Sep 17 00:00:00 2001 From: drakbar Date: Thu, 13 Jul 2023 02:37:08 -0500 Subject: [PATCH] demo the use of multiple color delimiters in pattern --- example/example.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/example.cpp b/example/example.cpp index d6609ed5..c3592c03 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -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);