Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-04-29 13:42:53


"Daniel Frey" <d.frey_at_[hidden]> wrote in message
news:d4tshu$h4t$1_at_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


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