There are various ways to enable or disable logging at compile time. The most basic is to use preprocessor definitions and macros.
DEBUG("Debug message s