Test logger_level_to_error.