update logger.cpp