'Emit a record.
Writes the LogRecord to the queue, preparing it for pickling first.'

def emit(self, record):

    try:
        self.enqueue(self.prepare(record))
    except Exception:
        self.handleError(record)
