code: def emit(self, record):
          
          data = copy.deepcopy(self.defaults)
          data["message"] = self.format(record)
          try:
              self.provider.notify(raise_on_errors=True, **data)
          except Exception:
              self.handleError(record)
docs: Override the :meth:`~logging.Handler.emit` method that takes the ``msg`` attribute from the log record passed
  
          :param record: :class:`logging.LogRecord`