boost::logging::scenario::ts Namespace Reference

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


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...


Detailed Description

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.



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