def add_log_level(logger, method_name, event_dict):
    """
    Add the log level to the event dict.
    """
    if method_name == 'warn':
        method_name = 'warning'
    event_dict['level'] = method_name
    return event_dict
