def add_logger_name(logger, method_name, event_dict):
    """
    Add the logger name to the event dict.
    """
    record = event_dict.get('_record')
    if record is None:
        event_dict['logger'] = logger.name
    else:
        event_dict['logger'] = record.name
    return event_dict
