|
Boost : |
From: John Torjo (john.lists_at_[hidden])
Date: 2005-08-18 08:57:26
> While trying out the new library, I found the need to apply a small
> patch to make levels work with scopeed loggers:
>
> In boost/log/log.hpp:
>
> 390c390
> << #define BOOST_SCOPEDLOGL(log_name,lvl) if
> (::boost::logging::simple_logger_keeper keep =
> ::boost::logging::simple_logger_keeper(log_name,::boost::logging::level::lvl))
> ; else (*keep.stream())
> ---
> >> #define BOOST_SCOPEDLOGL(log_name,lvl) if
> (::boost::logging::simple_logger_keeper keep =
> ::boost::logging::simple_logger_keeper(::boost::logging::logger_and_level(log_name,::boost::logging::level::lvl))
> ) ; else (*keep.stream())
>
>
> Note the use of the "logger_and_level" constructor.
>
Yes, thanks!
Applied it, and will put it on the site, shortly.
Best,
John
-- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/ -v1.6.3 (Resource Splitter) -- http://www.torjo.com/cb/ - Click, Build, Run!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk