[New-bugs-announce] [issue37469] Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.

Martijn Pieters report at bugs.python.org
Mon Jul 1 09:41:45 EDT 2019


New submission from Martijn Pieters <mj at python.org>:

The implementation of the logging.handler.QueueHandler and logging.handler.QueueListener does not make use of the task tracking API of queues (queue.task_done(), queue.join()) nor does it care if the queue is unbounded (queue.full(), catching the Full exception).

As such, it can work just as well with the new queue.SimpleQueue implementation (new in 3.7, see https://docs.python.org/3/library/queue.html#queue.SimpleQueue), which is fast and lightweight, implemented in C.

Can the documentation be updated to make this option explicit?

----------
assignee: docs at python
components: Documentation
messages: 347017
nosy: docs at python, mjpieters
priority: normal
severity: normal
status: open
title: Make it explicit that logging QueueHandler / QueueListener accepts a SimpleQueue.
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37469>
_______________________________________


More information about the New-bugs-announce mailing list