Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2005-05-21 22:23:00


Darryl Green wrote:

> John Torjo <john.lists <at> torjo.com> writes:
>
>>Hi Darryl,
>>
>>Sorry for the late reply...
>
>
> No worries.
>
>
>>I really like the sink concept. I could do something like:
>>
>>get_sink("app.*").set_level(LEVEL_DEBUG);
>>get_sink("app.*").add_appender(some_appender);
>>get_sink("app.*").del_appender(some_appender);
>
>
> Something like that, yes. Though I would spell it
> log_mgr.add_appender("app.*", some_appender)
> or (if a singleton log_mgr)
> get_log_mgr().add_appender("app.*", some_appender)
>

The reason I chose the above was for extensibility - every new feature
would be appended to the sink -- much easier to find, IMO.

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