Add DEBUGLOG macro.

Adds the severity and prepends the function name.
This commit is contained in:
tastytea 2021-06-01 15:24:19 +02:00
parent 580f08b823
commit a8db304bf1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -27,6 +27,7 @@
#include <boost/smart_ptr/shared_ptr.hpp>
#define LOG(severity) BOOST_LOG_SEV(epubgrep::log::logger::get(), severity)
#define DEBUGLOG LOG(epubgrep::log::sev::debug) << __func__ << "(): "
namespace epubgrep::log
{