diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 19:29:36 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 19:29:36 (GMT) |
commit | cdddf2b875e10f86af55eacb83e81025f1071b39 (patch) | |
tree | 84dfe3c7b754b221d306b1627ed73c357d932106 /Doc/library | |
parent | 462d1b39a48ed3a18a0e3f3ae9edf643af19a981 (diff) | |
download | cpython-cdddf2b875e10f86af55eacb83e81025f1071b39.zip cpython-cdddf2b875e10f86af55eacb83e81025f1071b39.tar.gz cpython-cdddf2b875e10f86af55eacb83e81025f1071b39.tar.bz2 |
Mention logging.captureWarnings in the warnings module doc.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/warnings.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst index 274840b..8af19a2 100644 --- a/Doc/library/warnings.rst +++ b/Doc/library/warnings.rst @@ -40,6 +40,10 @@ may be overridden; the default implementation of this function formats the message by calling :func:`formatwarning`, which is also available for use by custom implementations. +.. seealso:: + :func:`logging.captureWarnings` allows you to handle all warnings with + the standard logging infrastructure. + .. _warning-categories: |