]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document that logging registers shutdown as an atexit handler (GH-12378)
authorAndre Delfino <adelfino@gmail.com>
Tue, 26 Mar 2019 05:42:26 +0000 (02:42 -0300)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Tue, 26 Mar 2019 05:42:26 +0000 (05:42 +0000)
Doc/library/logging.rst

index 5adde29f50851b54795aa96f4bd5acef38dad29a..08555c3a357602771379fa02067888ea175f2ed1 100644 (file)
@@ -1215,6 +1215,10 @@ functions.
    closing all handlers. This should be called at application exit and no
    further use of the logging system should be made after this call.
 
+   When the logging module is imported, it registers this function as an exit
+   handler (see :mod:`atexit`), so normally there's no need to do that
+   manually.
+
 
 .. function:: setLoggerClass(klass)