
"Daniel Frey" <d.frey@gmx.de> wrote in message news:d4tshu$h4t$1@sea.gmane.org...
John Torjo wrote:
I've just updated the Boost Log Library: http://torjo.com/code/logging-v132.zip
It's good to see progress on logging and what I've seen so far looks promising. However...
BOOST_LOG(app) << "testing " << i << '-' << j << '-' << k << std::endl; BOOST_LOG(dbg) << "this is a debug message, i=" << i << std::endl; BOOST_LOG(info) << "I just wanted to tell you something....";
...while I like the feeling of the stream approach from a user's perspective, there is one (IMHO important) feature that can not be implemented with it: Exception guards.
Another thing (from the same domain) that I found especially difficult to deal with in my logging implementation is "intermixed logging": BOOST_LOG(..) << "Print result of f(): " << f(); ... void f() { BOOST_LOG(..) << "Enter f()"; ... BOOST_LOG(..) << "Exit f()"; } Now to make it properly formatter isn't trivial at all. Gennadiy