From 2f7fdf266330f39b9f4556053573ed8236727005 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 6 Apr 2018 03:06:41 +0300 Subject: [PATCH] wincolor color formatting support --- example/example.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 90abd916..ea6e5f06 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -59,8 +59,9 @@ int main(int, char *[]) // Customize msg format for all messages 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 spd::set_level(spd::level::info); // Set global log level to info console->debug("This message should not be displayed!");