[Python-checkins] cpython (merge 3.2 -> default): 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:39 CET 2012


http://hg.python.org/cpython/rev/06d96a5bb41e
changeset:   74409:06d96a5bb41e
parent:      74407:9cd5e8ee1d02
parent:      74408:d97f5311c9ad
user:        Gregory P. Smith <greg at krypto.org>
date:        Sat Jan 14 13:19:20 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)
 
@@ -322,6 +327,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