summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-03-24 17:36:35 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-03-24 17:36:35 (GMT)
commit66d19e2a0c01f4485ff5e31956ba509a0863fec9 (patch)
treed31fcbeaf46100cba6a1544279456fc162fa2e34
parent27e024023cca704e44b0d5f577415d061f89f7d7 (diff)
downloadcpython-66d19e2a0c01f4485ff5e31956ba509a0863fec9.zip
cpython-66d19e2a0c01f4485ff5e31956ba509a0863fec9.tar.gz
cpython-66d19e2a0c01f4485ff5e31956ba509a0863fec9.tar.bz2
logging: Updated SysLogHandler documentation.
-rw-r--r--Doc/library/logging.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 72b152f..d563534 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: