or by adding the flag ( in gcc : -DDISABLE_ALL_LOGS ) during the compilation stage.
Warning:
When the logger is disabled, all the log statements will become NULL statements, so NEVERNEVER 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());