Rename init_debug() → enable_debug(), add documentation.

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

View File

@ -81,7 +81,7 @@ void init()
blog::add_common_attributes();
}
void init_debug()
void enable_debug()
{
global.textlog->set_filter(blog::trivial::severity == sev::debug);

View File

@ -45,9 +45,11 @@ struct global_variables
BOOST_LOG_INLINE_GLOBAL_LOGGER_DEFAULT(
logger, boost::log::sources::severity_logger_mt<sev>)
//! Call this before doing any logging.
void init();
void init_debug();
//! Enable debug logging. Call after init().
void enable_debug();
} // namespace epubgrep::log