Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2005-06-13 04:36:51


Maksym Motornyy wrote:

> John Torjo wrote:
>
>> Hi all,
>>
>> Just included the nifty appenders from Caleb, and made some small fixes.
>>
>> Enjoy!
>> http://torjo.com/code/logging-v133.zip
>>
>>
>> Best,
>> John
>>
>
> I didn't find one very important feature in the library. Can logs be
> removed at all at compile time? At my company we use logging only in
> debug builds.
>

Yes, they can. Check out BOOST_DECLARE_LOG_DEBUG and
BOOST_DECLARE_LOG_COMPILE_TIME macros.

For instance,

// instead of BOST_DECLARE(dbg)
BOOST_DECLARE_LOG_DEBUG(dbg)

will make 'dbg' log available only in debug mode.

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