If what you are looking for is a flexible logging solution you should take a look at
ACE[
^]
It provides a flexible distributed multi-thread aware logging solution, and a bunch of other features that's very useful if you into serious multi-threaded development.
Here is a nice little
tutorial[
^]
And here is a nice little list of serious
projects using ACE and TAO[
^]
Regards
Espen Harlinn