mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-93162: Add ability to configure QueueHandler/QueueListener together (GH-93269)
Also, provide getHandlerByName() and getHandlerNames() APIs. Closes #93162.
This commit is contained in:
parent
c6f6ede728
commit
1b74803991
8 changed files with 325 additions and 31 deletions
|
@ -1051,7 +1051,13 @@ possible, while any potentially slow operations (such as sending an email via
|
|||
want to override this if you want to use blocking behaviour, or a
|
||||
timeout, or a customized queue implementation.
|
||||
|
||||
.. attribute:: listener
|
||||
|
||||
When created via configuration using :func:`~logging.config.dictConfig`, this
|
||||
attribute will contain a :class:`QueueListener` instance for use with this
|
||||
handler. Otherwise, it will be ``None``.
|
||||
|
||||
.. versionadded:: 3.12
|
||||
|
||||
.. _queue-listener:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue