initial commit
[raggin.git] / src / log.hpp
blob0b56ef87f6f070f41efce0ebaa2ee5781ccf8e3a
1 #ifndef log_hpp_INCLUDED
2 #define log_hpp_INCLUDED
4 #include <boost/logging/format_fwd.hpp>
7 typedef boost::logging::logger_format_write<
8 boost::logging::default_,
9 boost::logging::default_,
10 boost::logging::writer::threading::ts_write
11 > log_type;
13 BOOST_DECLARE_LOG_FILTER(g_log_filter, boost::logging::filter::no_ts )
14 BOOST_DECLARE_LOG(g_l, log_type)
16 #define LOG BOOST_LOG_USE_LOG_IF_FILTER(g_l, g_log_filter->is_enabled())
18 void init_log();
20 #endif