def ParseRow(self, parser_mediator, row_offset, row):
    """Parses a line of the log file and produces events.

    Args:
      parser_mediator (ParserMediator): mediates interactions between parsers
          and other components, such as storage and dfvfs.
      row_offset (int): line number of the row.
      row (dict[str, str]): fields of a single row, as specified in COLUMNS.
    """
    try:
      timestamp = self._ConvertToTimestamp(
          row['date'], row['time'], parser_mediator.timezone)
    except errors.TimestampError as exception:
      parser_mediator.ProduceExtractionWarning(
          'Unable to parse time string: [{0:s} {1:s}] with error {2:s}'.format(
              repr(row['date']), repr(row['time']), exception))
      return

    if timestamp is None:
      return

    event_data = McafeeAVEventData()
    event_data.action = row['action']
    event_data.filename = row['filename']
    event_data.offset = row_offset
    event_data.rule = row['rule']
    event_data.status = row['status']
    event_data.trigger_location = row['trigger_location']
    event_data.username = row['username']

    event = time_events.TimestampEvent(
        timestamp, definitions.TIME_DESCRIPTION_WRITTEN)
    parser_mediator.ProduceEventWithEventData(event, event_data)
def ParseRow ( self , parser_mediator , row_offset , row ) : try : timestamp = self . _ConvertToTimestamp ( row [ 'date' ] , row [ 'time' ] , parser_mediator . timezone ) except errors . TimestampError as exception : parser_mediator . ProduceExtractionWarning ( 'Unable to parse time string: [{0:s} {1:s}] with error {2:s}' . format ( repr ( row [ 'date' ] ) , repr ( row [ 'time' ] ) , exception ) ) return if timestamp is None : return event_data = McafeeAVEventData ( ) event_data . action = row [ 'action' ] event_data . filename = row [ 'filename' ] event_data . offset = row_offset event_data . rule = row [ 'rule' ] event_data . status = row [ 'status' ] event_data . trigger_location = row [ 'trigger_location' ] event_data . username = row [ 'username' ] event = time_events . TimestampEvent ( timestamp , definitions . TIME_DESCRIPTION_WRITTEN ) parser_mediator . ProduceEventWithEventData ( event , event_data )
Parses a line of the log file and produces events.

    Args:
      parser_mediator (ParserMediator): mediates interactions between parsers
          and other components, such as storage and dfvfs.
      row_offset (int): line number of the row.
      row (dict[str, str]): fields of a single row, as specified in COLUMNS.