modify logging.h