code: def emit(self, record: logging.LogRecord) -> None:
          
          # noinspection PyBroadException
          try:
              html = self.format(record)
              self.logfunction(html)
          except:  # nopep8
              self.handleError(record)
docs: Internal function to process a :class:`LogRecord`.