summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-09 21:31:07 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-09 21:31:07 +0200
commit3d1f0a6718c4b792921b2924561209ea971e1ae8 (patch)
tree378a799c12b98be1fd59cd6893fa376f96194746 /Doc
parente9b93dd9e63e0abf356dc327626a3e459f53c02b (diff)
parent62b81ba0effb23304aad3eb93fde4fb3a11685be (diff)
downloadcpython-3d1f0a6718c4b792921b2924561209ea971e1ae8.tar.gz
Mention logging.captureWarnings in the warnings module doc.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/warnings.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index 274840b342..8af19a282e 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: