12. Disabling the logger.

Lets say you want to disable all the log function calls, (for example during the release mode), this can be done either
Warning:
When the logger is disabled, all the log statements will become NULL statements, so NEVER NEVER write logs which includes a computation or a function call :
        // The following code is NOT CORRECT
        // The following statement will be null when the logger is disabled and the function 
        // foo is never called, when logger is disabled.
        LogDebug(" foo() returned %d " , foo());


liblogger © 2007 - SourceForge.net Logo