[Box Backup-dev] Logging

Charles Lecklider boxbackup-dev@fluffy.co.uk
Sun, 25 Dec 2005 19:09:50 +0000


Chris Wilson wrote:
<lots of stuff about logging I only just read properly>

> * All TRACE calls are changed to Log::Log(Log::TRACE, ...)

How are you going to get those to compile out for a release build? The
nice thing about TRACE macros is that they can be removed completely by
the compiler, and I think it's important to do that for a release build.

Short of wrapping every Log::TRACE call in #ifndef NDEBUG//#endif I
don't see how you can do the same thing with the new system. Perhaps
there's some clever C++ trick I don't know about?

-C