Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3e658306
Commit
3e658306
authored
Jun 29, 2019
by
Andre Delfino
Committed by
Vinay Sajip
Jun 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make StreamHandler.terminator more discoverable (GH-14359)
parent
18a2fc6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
Doc/library/logging.handlers.rst
Doc/library/logging.handlers.rst
+11
-7
No files found.
Doc/library/logging.handlers.rst
View file @
3e658306
...
...
@@ -48,7 +48,7 @@ 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 terminator
. If exception information
is then written to the stream
followed by :attr:`terminator`
. If exception information
is present, it is formatted using :func:`traceback.print_exception` and
appended to the stream.
...
...
@@ -70,13 +70,17 @@ and :meth:`flush` methods).
.. versionadded:: 3.7
.. attribute:: terminator
.. versionchanged:: 3.2
The ``StreamHandler`` class now has a ``terminator`` attribute, default
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'``.
String used as the terminator when writing a formatted record to a stream.
Default value is ``'\n'``.
If you don't want a newline termination, you can set the handler instance's
``terminator`` attribute to the empty string.
In earlier versions, the terminator was hardcoded as ``'\n'``.
.. versionadded:: 3.2
.. _file-handler:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment