Fixed preprocessor directive in logger.cpp

Signed-off-by: Christian Rapp <crappbytes@gmail.com>