diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 21:31:07 +0200 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-07-09 21:31:07 +0200 |
| commit | 3d1f0a6718c4b792921b2924561209ea971e1ae8 (patch) | |
| tree | 378a799c12b98be1fd59cd6893fa376f96194746 /Doc | |
| parent | e9b93dd9e63e0abf356dc327626a3e459f53c02b (diff) | |
| parent | 62b81ba0effb23304aad3eb93fde4fb3a11685be (diff) | |
| download | cpython-3d1f0a6718c4b792921b2924561209ea971e1ae8.tar.gz | |
Mention logging.captureWarnings in the warnings module doc.
Diffstat (limited to 'Doc')
| -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 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: |
