[New-bugs-announce] [issue32821] Add snippet on how to configure a "split" stream for console

Mario Corchero report at bugs.python.org
Sun Feb 11 12:08:39 EST 2018


New submission from Mario Corchero <mariocj89 at gmail.com>:

As discussed in python-ideas, it would be good to have a recipe on how to configure the logging stack to be able to log ``ERROR`` and above to stderr and ``INFO`` and below to stdout.

It was proposed to add it into the cookbook rather than on the standard library. An alternative proposal was a "ConsoleHandler" that would do this by default. (https://github.com/mariocj89/cpython/commit/501cfcd0f4cad1e04d87b89784988c52a77a80ad)

----------
assignee: docs at python
components: Documentation
messages: 312003
nosy: docs at python, mariocj89
priority: normal
severity: normal
status: open
title: Add snippet on how to configure a "split" stream for console
versions: Python 3.8

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


More information about the New-bugs-announce mailing list