[issue39893] Add set_terminate() to logging

Vinay Sajip report at bugs.python.org
Mon Mar 9 09:58:49 EDT 2020


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

There's no need for a method to do this. You can do any of:

1. Set the terminator attribute to whatever you need in logging.StreamHandler (if all code you ever use must use a different terminator).

2. Set it in individual instances of StreamHandler.

3. Set it in a subclass of StreamHandler which you then use instead of StreamHandler.

Since only a few cases will want a different terminator, there's no need to add a special mechanism to override it, when you can just use an assignment statement.

----------
resolution:  -> rejected
stage:  -> resolved
status: open -> closed
versions:  -Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39893>
_______________________________________


More information about the Python-bugs-list mailing list