mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +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
|
@ -1424,6 +1424,7 @@ class QueueHandler(logging.Handler):
|
|||
"""
|
||||
logging.Handler.__init__(self)
|
||||
self.queue = queue
|
||||
self.listener = None # will be set to listener if configured via dictConfig()
|
||||
|
||||
def enqueue(self, record):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue