Skip to content

Commit 421b74e

Browse files
committed
Issue #9606: Updated documentation for Filter objects.
1 parent 2f31bab commit 421b74e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/library/logging.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,6 +2558,13 @@ initialized with the empty string, all events are passed.
25582558
yes. If deemed appropriate, the record may be modified in-place by this
25592559
method.
25602560

2561+
Note that filters attached to handlers are consulted whenever an event is
2562+
emitted by the handler, whereas filters attached to loggers are consulted
2563+
whenever an event is logged to the handler (using :meth:`debug`, :meth:`info`,
2564+
etc.) This means that events which have been generated by descendant loggers
2565+
will not be filtered by a logger's filter setting, unless the filter has also
2566+
been applied to those descendant loggers.
2567+
25612568
.. _log-record:
25622569

25632570
LogRecord Objects

0 commit comments

Comments
 (0)