diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-10-20 11:40:02 (GMT) |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-10-20 11:40:02 (GMT) |
| commit | 7fc38244087343e3eca851602e890fdfec6391f0 (patch) | |
| tree | f55c6f6ce508852ca382aea5750c9f9fc2986e06 | |
| parent | 78025225316c3a22e3a0e3f095b204a3b05b7ee0 (diff) | |
| download | cpython-7fc38244087343e3eca851602e890fdfec6391f0.zip cpython-7fc38244087343e3eca851602e890fdfec6391f0.tar.gz cpython-7fc38244087343e3eca851602e890fdfec6391f0.tar.bz2 | |
logging: clarified Filter documentation.
| -rw-r--r-- | Doc/library/logging.rst | 3 |
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 ^^^^^^^^^^^^^^^^^^^^^^ |
