diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-12-22 15:04:15 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2010-12-22 15:04:15 (GMT) |
commit | 689b68ad2d3e1b315aeef81a23b947b9851378a8 (patch) | |
tree | 04531ce514358c7be795a3e2046bedd262ca0aca /Doc/library | |
parent | 5e9b14c39eb646afca1d6f5dd48e717ab3dd3c7d (diff) | |
download | cpython-689b68ad2d3e1b315aeef81a23b947b9851378a8.zip cpython-689b68ad2d3e1b315aeef81a23b947b9851378a8.tar.gz cpython-689b68ad2d3e1b315aeef81a23b947b9851378a8.tar.bz2 |
Logging documentation updates.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/logging.handlers.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst index 810a473..f370e8a 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: |