[Python-checkins] cpython (merge 3.2 -> default): Mention logging.captureWarnings in the warnings module doc.
antoine.pitrou
python-checkins at python.org
Sat Jul 9 21:32:27 CEST 2011
http://hg.python.org/cpython/rev/661195a92131
changeset: 71292:661195a92131
parent: 71288:df7289fbe4ac
parent: 71291:0b922abbcaf7
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Jul 09 21:31:07 2011 +0200
summary:
Mention logging.captureWarnings in the warnings module doc.
files:
Doc/library/warnings.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
--- a/Doc/library/warnings.rst
+++ b/Doc/library/warnings.rst
@@ -40,6 +40,10 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list