merge global_logger.c into logger.c