From: Antoine Pitrou Date: Sat, 9 Jul 2011 19:29:36 +0000 (+0200) Subject: Mention logging.captureWarnings in the warnings module doc. X-Git-Tag: v3.2.2rc1~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdddf2b875e10f86af55eacb83e81025f1071b39;p=python Mention logging.captureWarnings in the warnings module doc. --- 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: