code: def format(self, record):
          
          format_orig = self._fmt
          self._fmt = self.get_level_fmt(record.levelno)
          record.prefix = self.prefix
          record.plugin_id = self.plugin_id
          result = logging.Formatter.format(self, record)
          self._fmt = format_orig
          return result
docs: Format log record.