Rename init_debug() → enable_debug(), add documentation.
This commit is contained in:
parent
12a1c47259
commit
17b6017fe0
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user