summaryrefslogtreecommitdiff
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
commite1d2103ede0f29416b8458ce033c5f4cbb55e386 (patch)
tree4a979cbbb9f2586a706c9f16cabe4f9d5ad7b04f
parent966a399a597ccfe8988f1cc91aa15c30192250be (diff)
parentcdddf2b875e10f86af55eacb83e81025f1071b39 (diff)
downloadcpython-git-e1d2103ede0f29416b8458ce033c5f4cbb55e386.tar.gz
Mention logging.captureWarnings in the warnings module 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: