code: def handle(self):
          
          # Unpack the data from the request
          data, socket = self.request
          
          try:
              # Parse it as JSON
              message_attrs = json.loads(data.decode('utf-8'))
              # Fluff it up into a proper logging record
              record = logging.makeLogRecord(message_attrs)
          except:
              # Complain someone is sending us bad logging data
              logging.error("Malformed log message from {}".format(self.client_address[0]))
          else:
              # Log level filtering should have been done on the remote end. The handle() method
              # skips it on this end.
              log.handle(record)
docs: Handle a single message. SocketServer takes care of splitting out the messages.
          
          Messages are JSON-encoded logging module records.