changeset: 77087:4973c90ce9e6 branch: 2.7 parent: 77081:aad7cf67b9ea user: Vinay Sajip date: Sun May 20 15:35:00 2012 +0100 files: Doc/library/logging.rst description: Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call. diff -r aad7cf67b9ea -r 4973c90ce9e6 Doc/library/logging.rst --- a/Doc/library/logging.rst Sun May 20 11:50:41 2012 +0200 +++ b/Doc/library/logging.rst Sun May 20 15:35:00 2012 +0100 @@ -814,7 +814,8 @@ effect is to disable all logging calls of severity *lvl* and below, so that if you call it with a value of INFO, then all INFO and DEBUG events would be discarded, whereas those of severity WARNING and above would be processed - according to the logger's effective level. + according to the logger's effective level. To undo the effect of a call to + ``logging.disable(lvl)``, call ``logging.disable(logging.NOTSET)``. .. function:: addLevelName(lvl, levelName)

AltStyle によって変換されたページ (->オリジナル) /