Output info messages to stderr with --debug.

This commit is contained in:
tastytea 2021-06-01 13:52:41 +02:00
parent 28c0a5a797
commit 580f08b823
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ void enable_debug()
global.textlog->set_filter(blog::trivial::severity >= sev::debug);
blog::add_console_log(std::cerr,
keywords::format = "%LineID% DEBUG: %Message%")
->set_filter(blog::trivial::severity == sev::debug);
keywords::format = "[%Severity%] %Message%")
->set_filter(blog::trivial::severity <= sev::info);
LOG(sev::info) << "Debug logging enabled.";
}