Use logger as pointer in main.cpp (logger.debug() => logger->debug())