code: def WriteEventBody(self, event):
      
      if not hasattr(event, 'timestamp'):
        return
  
      # TODO: preserve dfdatetime as an object.
      date_time = dfdatetime_posix_time.PosixTimeInMicroseconds(
          timestamp=event.timestamp)
      posix_timestamp = date_time.CopyToPosixTimestamp()
      if not posix_timestamp:
        posix_timestamp = 0
  
      source = self._FormatSource(event)
      hostname = self._FormatHostname(event)
      username = self._FormatUsername(event)
      description = self._FormatDescription(event)
      notes = self._FormatNotes(event)
  
      out_write = '{0:d}|{1:s}|{2:s}|{3:s}|{4:s}|{5!s}|{6!s}\n'.format(
          posix_timestamp, source, hostname, username, description,
          self._output_mediator.timezone, notes)
  
      self._output_writer.Write(out_write)
docs: Writes the body of an event object to the output.
  
      Args:
        event (EventObject): event.