From 7fc38244087343e3eca851602e890fdfec6391f0 Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Wed, 20 Oct 2010 11:40:02 +0000 Subject: [PATCH] logging: clarified Filter documentation. --- Doc/library/logging.rst | 3 +++ 1 file changed, 3 insertions(+) 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 ^^^^^^^^^^^^^^^^^^^^^^ -- 2.50.1