Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2004-10-26 11:45:52


From: John Torjo <john.lists_at_[hidden]>
>
> The main reason for requiring a macro was for efficiency, so that
> logging statements could easily be disabled.
>
> No matter what, you'll somehow need to do something like:
>
> // equivalent of: BOOST_LOG (some_log) << the << things << to << output;
>
> if ( is_enabled(some_log))
> some_log << the << things << to << output;
>
> Which to me seems tedious and you can easily forget to write that.

Yes, something like that is necessary. I also agree that it is
tedious and easily forgotten. The question is whether there is a
way to capture that idea in such a way that it cannot be
forgotten without adding additional overhead or tedium.

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

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