modify logger.cpp/h