summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-10-20 11:40:02 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-10-20 11:40:02 (GMT)
commit7fc38244087343e3eca851602e890fdfec6391f0 (patch)
treef55c6f6ce508852ca382aea5750c9f9fc2986e06
parent78025225316c3a22e3a0e3f095b204a3b05b7ee0 (diff)
downloadcpython-7fc38244087343e3eca851602e890fdfec6391f0.zip
cpython-7fc38244087343e3eca851602e890fdfec6391f0.tar.gz
cpython-7fc38244087343e3eca851602e890fdfec6391f0.tar.bz2
logging: clarified Filter documentation.
-rw-r--r--Doc/library/logging.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 71d87cd..4beeec6 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
^^^^^^^^^^^^^^^^^^^^^^