update logger.cpp/h