From: Andre Delfino Date: Tue, 26 Mar 2019 05:42:26 +0000 (-0300) Subject: Document that logging registers shutdown as an atexit handler (GH-12378) X-Git-Tag: v3.8.0a4~342 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e700e4ca3922337a24dc150238a6da724cfe873;p=thirdparty%2FPython%2Fcpython.git Document that logging registers shutdown as an atexit handler (GH-12378) --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 5adde29f5085..08555c3a3576 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -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)