dhcpkit.ipv6.server.queue_logger module¶
Adapt the QueueListener so that it respects the log levels of the handlers. Based on the Python 3.5 implementation.
-
class
dhcpkit.ipv6.server.queue_logger.QueueLevelListener(queue, *handlers, respect_handler_level=False)[source]¶ Bases:
logging.handlers.QueueListenerQueueListener that respects log levels
-
dequeue(block)[source]¶ Dequeue a record and return it, optionally blocking. Return the sentinel on EOF because otherwise there are strange errors after a reload.
-
-
class
dhcpkit.ipv6.server.queue_logger.WorkerQueueHandler(queue: multiprocessing.queues.Queue)[source]¶ Bases:
logging.handlers.QueueHandlerA logging handler that queues messages and doesn’t cause exceptions when the queue is full.