modify logger.cpp