def event_log_formatter(events):
    """Return the events in log format."""
    event_log = []
    log_format = (
        '%(event_time)s [%(rsrc_name)s]: %(rsrc_status)s  %(rsrc_status_reason)s'
        )
    for event in events:
        event_time = getattr(event, 'event_time', '')
        log = log_format % {'event_time': event_time.replace('T', ' '),
            'rsrc_name': getattr(event, 'resource_name', ''), 'rsrc_status':
            getattr(event, 'resource_status', ''), 'rsrc_status_reason':
            getattr(event, 'resource_status_reason', '')}
        event_log.append(log)
    return '\n'.join(event_log)
