Dequeue a record and return it, optionally blocking. The base implementation uses get. You may want to override this method if you want to use timeouts or work with custom queue implementations.
logging.handlers/QueueListener.dequeue
QueueListener.dequeue