summaryrefslogtreecommitdiff
path: root/Doc/library/logging.handlers.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-12-22 15:04:15 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-12-22 15:04:15 +0000
commit207cc3e02c26886e30253b711002867082486deb (patch)
treea68f9a8cde29c3eaac7a741e5816f1ce43707ace /Doc/library/logging.handlers.rst
parent1244ebf6726f874d58ea7cc0075102d684144e11 (diff)
downloadcpython-207cc3e02c26886e30253b711002867082486deb.tar.gz
Logging documentation updates.
Diffstat (limited to 'Doc/library/logging.handlers.rst')
-rw-r--r--Doc/library/logging.handlers.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst
index 810a473350..f370e8a1e7 100644
--- a/Doc/library/logging.handlers.rst
+++ b/Doc/library/logging.handlers.rst
@@ -45,9 +45,9 @@ and :meth:`flush` methods).
.. method:: emit(record)
If a formatter is specified, it is used to format the record. The record
- is then written to the stream with a trailing newline. If exception
- information is present, it is formatted using
- :func:`traceback.print_exception` and appended to the stream.
+ is then written to the stream with a terminator. If exception information
+ is present, it is formatted using :func:`traceback.print_exception` and
+ appended to the stream.
.. method:: flush()
@@ -61,6 +61,7 @@ and :meth:`flush` methods).
value ``'\n'``, which is used as the terminator when writing a formatted
record to a stream. If you don't want this newline termination, you can
set the handler instance's ``terminator`` attribute to the empty string.
+ In earlier versions, the terminator was hardcoded as ``'\n'``.
.. _file-handler: