Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2004-06-30 15:48:41


John Torjo wrote:
> Dear boosters,
>
> Worked some more on the logging library, and here's what's new:
>
> - added ***documentation***
> - added samples
> - made static library (improved compilation times)
> - added efficient thread-safe logger, which does the logging on a
> dedicated thread

why do you route the log to a different thread instead of writing
it directly ? On the one hand you provide macros to be able to
optimize the logger code away if it is not desired, on the other hand
you accept a full context switch (and mutex lock and...) for each single message !

May be, if you want to be fancy and fashionable, you could put this kind of
'strategy' into a trait...

Regards,
                Stefan


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