]> granicus.if.org Git - python/commitdiff
bpo-30862: Updated Logger.setLevel documentation. (GH-2604)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 6 Jul 2017 16:51:28 +0000 (17:51 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Jul 2017 16:51:28 +0000 (17:51 +0100)
Doc/library/logging.rst

index 1b27241f6f97478636de6fe940daf93fb687b133..d2c6c90c41c74a85cc59af7245f0f2dfc8ed0a7b 100644 (file)
@@ -94,10 +94,14 @@ is the module's name in the Python package namespace.
    .. method:: Logger.setLevel(lvl)
 
       Sets the threshold for this logger to *lvl*. Logging messages which are less
-      severe than *lvl* will be ignored. When a logger is created, the level is set to
-      :const:`NOTSET` (which causes all messages to be processed when the logger is
-      the root logger, or delegation to the parent when the logger is a non-root
-      logger). Note that the root logger is created with level :const:`WARNING`.
+      severe than *lvl* will be ignored; logging messages which have severity *lvl*
+      or higher will be emitted by whichever handler or handlers service this logger,
+      unless a handler's level has been set to a higher severity level than *lvl*.
+
+      When a logger is created, the level is set to :const:`NOTSET` (which causes
+      all messages to be processed when the logger is the root logger, or delegation
+      to the parent when the logger is a non-root logger). Note that the root logger
+      is created with level :const:`WARNING`.
 
       The term 'delegation to the parent' means that if a logger has a level of
       NOTSET, its chain of ancestor loggers is traversed until either an ancestor with