code: def emit(self, record):
          
          try:
              syslog_msg = self.build_msg(record)
              self.transport.transmit(syslog_msg)
          except Exception:
              self.handleError(record)
docs: Emit a record.
  
          The record is formatted, and then sent to the syslog server. If
          exception information is present, it is NOT sent to the server.