]> granicus.if.org Git - python/commitdiff
logging: Updated SysLogHandler documentation.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 24 Mar 2010 17:36:35 +0000 (17:36 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 24 Mar 2010 17:36:35 +0000 (17:36 +0000)
Doc/library/logging.rst

index 72b152f756b1cf3d192d417e8b99b96b7fdfbd06..d56353436a563f1ca38779b5786b3367e5d86a55 100644 (file)
@@ -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: