Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2005-05-05 14:34:21


On 5/5/05, Rob Stewart <stewart_at_[hidden]> wrote:

> In the general case, one might really need to write
>
> if (logging this level, subsystem, etc.)
> {
> do various things including logging messages
> }

I think you can just use the safe bool conversion in the current
loggers for this:

if (debug)
{
    do_whatever ();
    BOOST_LOG(debug) << "Did whatever";
}

-- 
Caleb Epstein
caleb dot epstein at gmail dot com

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