fix bug in logger.cpp/h