summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2005-09-26 00:14:46 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2005-09-26 00:14:46 (GMT)
commitd1c0239862bf2d89c1aec384b555673bf80081b9 (patch)
tree9b5e426d21346aee1fa13d1acadf3463833b020a /Doc/lib
parentdd5c023af56b9a424a3965364521c50b73308379 (diff)
downloadcpython-d1c0239862bf2d89c1aec384b555673bf80081b9.zip
cpython-d1c0239862bf2d89c1aec384b555673bf80081b9.tar.gz
cpython-d1c0239862bf2d89c1aec384b555673bf80081b9.tar.bz2
Minor clarification of effective level calculation
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/liblogging.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/lib/liblogging.tex b/Doc/lib/liblogging.tex
index 639966e..eb6fedb 100644
--- a/Doc/lib/liblogging.tex
+++ b/Doc/lib/liblogging.tex
@@ -334,6 +334,20 @@ created, the level is set to \constant{NOTSET} (which causes all messages
to be processed when the logger is the root logger, or delegation to the
parent when the logger is a non-root logger). Note that the root logger
is created with level \constant{WARNING}.
+
+The term "delegation to the parent" means that if a logger has a level
+of NOTSET, its chain of ancestor loggers is traversed until either an
+ancestor with a level other than NOTSET is found, or the root is
+reached.
+
+If an ancestor is found with a level other than NOTSET, then that
+ancestor's level is treated as the effective level of the logger where
+the ancestor search began, and is used to determine how a logging
+event is handled.
+
+If the root is reached, and it has a level of NOTSET, then all
+messages will be processed. Otherwise, the root's level will be used
+as the effective level.
\end{methoddesc}
\begin{methoddesc}{isEnabledFor}{lvl}