[Python-checkins] cpython (3.2): Mention the additional way to use the lvl parameter and when it changed.

gregory.p.smith python-checkins at python.org
Sat Jan 14 22:19:38 CET 2012


http://hg.python.org/cpython/rev/d97f5311c9ad
changeset:   74408:d97f5311c9ad
branch:      3.2
parent:      74403:a32bc62b8772
user:        Gregory P. Smith <greg at krypto.org>
date:        Sat Jan 14 12:46:17 2012 -0800
summary:
  Mention the additional way to use the lvl parameter and when it changed.

files:
  Doc/library/logging.rst |  10 ++++++++++
  1 files changed, 10 insertions(+), 0 deletions(-)


diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -87,6 +87,11 @@
    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.
 
+   .. versionchanged:: 3.2
+      The *lvl* parameter now accepts a string representation of the
+      level such as 'INFO' as an alternative to the integer constants
+      such as :const:`INFO`.
+
 
 .. method:: Logger.isEnabledFor(lvl)
 
@@ -319,6 +324,11 @@
    severe than *lvl* will be ignored. When a handler is created, the level is set
    to :const:`NOTSET` (which causes all messages to be processed).
 
+   .. versionchanged:: 3.2
+      The *lvl* parameter now accepts a string representation of the
+      level such as 'INFO' as an alternative to the integer constants
+      such as :const:`INFO`.
+
 
 .. method:: Handler.setFormatter(form)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list