summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-01-14 21:19:20 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-01-14 21:19:20 (GMT)
commit0ea3ea5e6954635714d028cb174d911ba59b7862 (patch)
treebf9223d73453c4afd3650a522c221ad06792abb4
parentc8d8b8861e2cadec76c534e996cbf6330a6e81de (diff)
parentc1f079f31751dadf3bfcc27eb2a9963a33f20be9 (diff)
downloadcpython-0ea3ea5e6954635714d028cb174d911ba59b7862.zip
cpython-0ea3ea5e6954635714d028cb174d911ba59b7862.tar.gz
cpython-0ea3ea5e6954635714d028cb174d911ba59b7862.tar.bz2
Mention the additional way to use the lvl parameter and when it changed.
-rw-r--r--Doc/library/logging.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 265c52f..b0487dd 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -87,6 +87,11 @@ instantiated directly, but always through the module-level function
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 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
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)