Cleaning up logging.