'Emit a record.
Pickles the record and writes it to the socket in binary format.
If there is an error with the socket, silently drop the packet.
If there was a problem with the socket, re-establishes the
socket.'

def emit(self, record):

    try:
        s = self.makePickle(record)
        self.send(s)
    except (KeyboardInterrupt, SystemExit):
        raise
    except:
        self.handleError(record)
