Classes | |
struct | level_ |
filter uses levels? More... | |
struct | filter_ |
filter thread-safety More... | |
struct | logger_ |
struct | use |
Find the right logger and filter, based on thread-safety: filter_::type, level_::type and logger_::type. More... |
First, don't forget to
using namespace boost::logging::scenario::ts;
Then, you can specify the logger and filter, in a very easy manner
Example:
using namespace boost::logging::scenario::ts; typedef use< filter_::use_tss, level_::use_levels, logger_::use_tss> finder; BOOST_DECLARE_LOG_FILTER(g_log_filter, finder::filter); BOOST_DECLARE_LOG(g_l, finder::logger) ...
To see how you can specify the logger/filter based on how you will use them, see usage namespace.