From: Vinay Sajip Date: Thu, 19 Aug 2010 19:17:41 +0000 (+0000) Subject: Issue #9606: Updated documentation for Filter objects. X-Git-Tag: v3.2a2~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8101021eae574bc65952c0a0027ed9af67420a76;p=python Issue #9606: Updated documentation for Filter objects. --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index cba14f10ab..c1ae10847e 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -2521,6 +2521,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