diff options
author | Andre Delfino <adelfino@gmail.com> | 2019-03-26 05:42:26 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-03-26 05:42:26 (GMT) |
commit | 3e700e4ca3922337a24dc150238a6da724cfe873 (patch) | |
tree | 4a709e6d0ad355784119fb9213ad4dc3e271b406 /Doc | |
parent | 577277f669a6d5c626c142358a940a10d32813ff (diff) | |
download | cpython-3e700e4ca3922337a24dc150238a6da724cfe873.zip cpython-3e700e4ca3922337a24dc150238a6da724cfe873.tar.gz cpython-3e700e4ca3922337a24dc150238a6da724cfe873.tar.bz2 |
Document that logging registers shutdown as an atexit handler (GH-12378)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/logging.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 5adde29..08555c3 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) |