Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdddf2b

Browse files
committed
Mention logging.captureWarnings in the warnings module doc.
1 parent 462d1b3 commit cdddf2b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/library/warnings.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ may be overridden; the default implementation of this function formats the
4040
message by calling :func:`formatwarning`, which is also available for use by
4141
custom implementations.
4242

43+
.. seealso::
44+
:func:`logging.captureWarnings` allows you to handle all warnings with
45+
the standard logging infrastructure.
46+
4347

4448
.. _warning-categories:
4549

0 commit comments

Comments
 (0)