Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2004-03-17 09:05:27


Neal D. Becker wrote:

>I notice boost doesn't have a logging library. I have seen several floating
>around. Are there any recommendations?
>
>
>

How about std::ostream ;) ?

Seriously, depending on your application, you can have so many
possibilities to implement logging using std::ostream streams.
For instance, you can implement thread-safety in less than 80 lines of code.

Also, disabling writing to a stream is fairly easy, by setting the
failbit of a stream object:
out.setstate( std::ios::failbit); // nothing gets written to this log
any more

Best,
John


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