[issue35821] Clarify when logging events are propagated when propagate is true

Vinay Sajip report at bugs.python.org
Fri Jan 25 08:32:40 EST 2019


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

That isn't quite accurate. A logger's attached handlers will always be offered a chance to handle an event if the logger's level and filters allow. However, the event is not actually passed to ancestor loggers - it is directly offered to any handlers attached to ancestor loggers, until a logger is encountered where propagate is false - and that is the last logger whose handlers are offered the event. All handlers have their own levels and filters and may or may not process an event according to those levels and filters.

----------

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


More information about the Python-bugs-list mailing list