diff --git a/src/log.cpp b/src/log.cpp index 4a7a6a1..b6f3c93 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -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); diff --git a/src/log.hpp b/src/log.hpp index 64919ba..d187ff4 100644 --- a/src/log.hpp +++ b/src/log.hpp @@ -45,9 +45,11 @@ struct global_variables BOOST_LOG_INLINE_GLOBAL_LOGGER_DEFAULT( logger, boost::log::sources::severity_logger_mt) +//! Call this before doing any logging. void init(); -void init_debug(); +//! Enable debug logging. Call after init(). +void enable_debug(); } // namespace epubgrep::log