summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.handlers.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-06-27 14:40:06 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-06-27 14:40:06 (GMT)
commit2353e35570ba5432cc1335c3926f8e5118c6404e (patch)
tree770ba4672c9e8777bfd6c7d07a9c15f666cb8ecb /Doc/library/logging.handlers.rst
parent345a5d735706a9ab41f1a682ed34815086970bb0 (diff)
downloadcpython-2353e35570ba5432cc1335c3926f8e5118c6404e.zip
cpython-2353e35570ba5432cc1335c3926f8e5118c6404e.tar.gz
cpython-2353e35570ba5432cc1335c3926f8e5118c6404e.tar.bz2
Closes #12419: Added ident to SysLogHandler.
Diffstat (limited to 'Doc/library/logging.handlers.rst')
-rw-r--r--Doc/library/logging.handlers.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst
index e8353ea..82e3969 100644
--- a/Doc/library/logging.handlers.rst
+++ b/Doc/library/logging.handlers.rst
@@ -452,6 +452,15 @@ supports sending logging messages to a remote or local Unix syslog.
behaviour) but can be set to ``False`` on a ``SysLogHandler`` instance
in order for that instance to *not* append the NUL terminator.
+ .. versionchanged:: 3.3
+ (See: :issue:`12419`.) In earlier versions, there was no facility for
+ an "ident" or "tag" prefix to identify the source of the message. This
+ can now be specified using a class-level attribute, defaulting to
+ ``""`` to preserve existing behaviour, but which can be overridden on
+ a ``SysLogHandler`` instance in order for that instance to prepend
+ the ident to every message handled. Note that the provided ident must
+ be text, not bytes, and is prepended to the message exactly as is.
+
.. method:: encodePriority(facility, priority)
Encodes the facility and priority into an integer. You can pass in strings