boost::logging::scenario::ts::use< filter_type, level_type, logger_type > Struct Template Reference

Find the right logger and filter, based on thread-safety: filter_::type, level_::type and logger_::type. More...

List of all members.


Detailed Description

template<filter_::type filter_type, level_::type level_type, logger_::type logger_type>
struct boost::logging::scenario::ts::use< filter_type, level_type, logger_type >

Find the right logger and filter, based on thread-safety: filter_::type, level_::type and logger_::type.

Find out the right logger/filter, based on thread-safety of logger(s)/filter(s).

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.


The documentation for this struct was generated from the following file:

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback