Fix text logging and debug logging.
This commit is contained in:
parent
17b6017fe0
commit
b12f88003b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user