[Python-checkins] python/dist/src/Doc/lib liblogging.tex, 1.39, 1.40

vsajip@users.sourceforge.net vsajip at users.sourceforge.net
Mon Sep 26 02:14:50 CEST 2005


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23285

Modified Files:
	liblogging.tex 
Log Message:
Minor clarification of effective level calculation

Index: liblogging.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liblogging.tex,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- liblogging.tex	18 Aug 2005 21:45:31 -0000	1.39
+++ liblogging.tex	26 Sep 2005 00:14:46 -0000	1.40
@@ -334,6 +334,20 @@
 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}



More information about the Python-checkins mailing list