mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #9606: Updated documentation for Filter objects.
This commit is contained in:
parent
4f1ba0de8a
commit
3478ac066b
1 changed files with 7 additions and 0 deletions
|
@ -2558,6 +2558,13 @@ initialized with the empty string, all events are passed.
|
|||
yes. If deemed appropriate, the record may be modified in-place by this
|
||||
method.
|
||||
|
||||
Note that filters attached to handlers are consulted whenever an event is
|
||||
emitted by the handler, whereas filters attached to loggers are consulted
|
||||
whenever an event is logged to the handler (using :meth:`debug`, :meth:`info`,
|
||||
etc.) This means that events which have been generated by descendant loggers
|
||||
will not be filtered by a logger's filter setting, unless the filter has also
|
||||
been applied to those descendant loggers.
|
||||
|
||||
.. _log-record:
|
||||
|
||||
LogRecord Objects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue