Fix text logging and debug logging.

This commit is contained in:
tastytea 2021-06-01 13:41:20 +02:00
parent 17b6017fe0
commit b12f88003b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 2 deletions

View File

@ -83,11 +83,13 @@ void init()
void enable_debug()
{
global.textlog->set_filter(blog::trivial::severity == sev::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);
->set_filter(blog::trivial::severity == sev::debug);
LOG(sev::info) << "Debug logging enabled.";
}
} // namespace epubgrep::log