Boost logo

Boost :

From: Andreas Wachowski (andreas.wachowski_at_[hidden])
Date: 2005-08-05 12:16:21


John Torjo wrote:
> Hi all,
>
> Just updated the Logging library. Find it here:
> http://torjo.com/code/logging.zip
> Also, I've updated the docs. Feedback is welcome.
>

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.
Best regards,
Andreas

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk