def METHOD_NAME(writer, event):
    action = ''
    resource = ''
    if event.doc_type == 'NavigationEventAudit':
        action = event.request_method
        resource = event.request_path
    else:
        assert event.doc_type == 'AccessAudit'
        action = event.access_type
        resource = event.path
    writer.writerow([
        event.event_date,
        event.doc_type,
        event.user,
        event.domain,
        event.ip_address,
        action,
        resource,
        event.description,
    ])