Feature or enhancement
Proposal:
This is a simple change that would allow:
with QueueListener(queue, handler1) as listener:
# the listener has started
...
# the listener has stopped
It's a welcomed alternative to needing to call start/stop manually.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/allow-logging-handlers-queuelistener-to-be-used-as-a-context-manager/87124
Linked PRs
Feature or enhancement
Proposal:
This is a simple change that would allow:
It's a welcomed alternative to needing to call start/stop manually.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/allow-logging-handlers-queuelistener-to-be-used-as-a-context-manager/87124
Linked PRs
logging.handlers.QueueListenercannot be started again #132444