From: Vinay Sajip Date: Wed, 20 Oct 2010 11:40:02 +0000 (+0000) Subject: logging: clarified Filter documentation. X-Git-Tag: v2.7.1rc1~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fc38244087343e3eca851602e890fdfec6391f0;p=python logging: clarified Filter documentation. --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 71d87cd56c..4beeec654a 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -2708,6 +2708,9 @@ 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. +You don't actually need to subclass ``Filter``: you can pass any instance +which has a ``filter`` method with the same semantics. + Other uses for filters ^^^^^^^^^^^^^^^^^^^^^^