code: def _ReportEventError(self, event, error_message):
      
      event_identifier = event.GetIdentifier()
      event_identifier_string = event_identifier.CopyToString()
      display_name = getattr(event, 'display_name', None) or 'N/A'
      parser_chain = getattr(event, 'parser', None) or 'N/A'
      error_message = (
          'Event: {0!s} data type: {1:s} display name: {2:s} '
          'parser chain: {3:s} with error: {4:s}').format(
              event_identifier_string, event.data_type, display_name,
              parser_chain, error_message)
      logger.error(error_message)
docs: Reports an event related error.
  
      Args:
        event (EventObject): event.
        error_message (str): error message.