From: Vinay Sajip Date: Wed, 24 Mar 2010 17:36:35 +0000 (+0000) Subject: logging: Updated SysLogHandler documentation. X-Git-Tag: v2.7b1~226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66d19e2a0c01f4485ff5e31956ba509a0863fec9;p=python logging: Updated SysLogHandler documentation. --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 72b152f756..d56353436a 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -2142,6 +2142,14 @@ supports sending logging messages to a remote or local Unix syslog. | ``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: