From c1f079f31751dadf3bfcc27eb2a9963a33f20be9 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 14 Jan 2012 12:46:17 -0800 Subject: Mention the additional way to use the lvl parameter and when it changed. --- Doc/library/logging.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index df5e5a5..5a41160 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) @@ -319,6 +324,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) -- cgit v0.12