code: def GetMessages(self, formatter_mediator, event):
      
      if self.DATA_TYPE != event.data_type:
        raise errors.WrongFormatter('Unsupported data type: {0:s}.'.format(
            event.data_type))
  
      event_values = event.CopyToDict()
  
      priority_level = event_values.get('level', None)
      if isinstance(priority_level, py2to3.INTEGER_TYPES):
        event_values['level'] = '{0:s} ({1:d})'.format(
            self._PRIORITY_LEVELS.get(priority_level, 'UNKNOWN'), priority_level)
  
      # If no rights are assigned the value is 0xffffffff (-1).
      read_uid = event_values.get('read_uid', None)
      if read_uid == -1:
        event_values['read_uid'] = 'ALL'
  
      # If no rights are assigned the value is 0xffffffff (-1).
      read_gid = event_values.get('read_gid', None)
      if read_gid == -1:
        event_values['read_gid'] = 'ALL'
  
      # TODO: get the real name for the user of the group having the uid or gid.
      return self._ConditionalFormatMessages(event_values)
docs: Determines the formatted message strings for an event object.
  
      Args:
        formatter_mediator (FormatterMediator): mediates the interactions
            between formatters and other components, such as storage and Windows
            EventLog resources.
        event (EventObject): event.
  
      Returns:
        tuple(str, str): formatted message string and short message string.
  
      Raises:
        WrongFormatter: if the event object cannot be formatted by the formatter.