'Handle multiple requests - each expected to be of 4-byte length,
followed by the LogRecord in pickle format. Logs the record
according to whatever policy is configured locally.'

def handle(self):

    while True:
        chunk = self.connection.recv(4)
        if (len(chunk) < 4):
            break
        slen = struct.unpack('>L', chunk)[0]
        chunk = self.connection.recv(slen)
        while (len(chunk) < slen):
            chunk = (chunk + self.connection.recv((slen - len(chunk))))
        obj = self.unpickle(chunk)
        record = logging.makeLogRecord(obj)
        self.handle_log_record(record)
