[Python-checkins] r79379 - python/trunk/Doc/library/logging.rst
vinay.sajip
python-checkins at python.org
Wed Mar 24 18:36:35 CET 2010
Author: vinay.sajip
Date: Wed Mar 24 18:36:35 2010
New Revision: 79379
Log:
logging: Updated SysLogHandler documentation.
Modified:
python/trunk/Doc/library/logging.rst
Modified: python/trunk/Doc/library/logging.rst
==============================================================================
--- python/trunk/Doc/library/logging.rst (original)
+++ python/trunk/Doc/library/logging.rst Wed Mar 24 18:36:35 2010
@@ -2142,6 +2142,14 @@
| ``local7`` | LOG_LOCAL7 |
+---------------+---------------+
+ .. method:: mapPriority(levelname)
+
+ Maps a logging level name to a syslog priority name.
+ You may need to override this if you are using custom levels, or
+ if the default algorithm is not suitable for your needs. The
+ default algorithm maps ``DEBUG``, ``INFO``, ``WARNING``, ``ERROR`` and
+ ``CRITICAL`` to the equivalent syslog names, and all other level
+ names to "warning".
.. _nt-eventlog-handler:
More information about the Python-checkins
mailing list