classification
Title: Add snippet on how to configure a "split" stream for console
Type: Stage: patch review
Components: Documentation Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, mariocj89
Priority: normal Keywords: patch

Created on 2018-02-11 17:08 by mariocj89, last changed 2018-02-11 17:11 by mariocj89.

Pull Requests
URL Status Linked Edit
PR 5625 open mariocj89, 2018-02-11 17:11
Messages (1)
msg312003 - (view) Author: Mario Corchero (mariocj89) * Date: 2018-02-11 17:08
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)
History
Date User Action Args
2018-02-11 17:11:05mariocj89setkeywords: + patch
stage: patch review
pull_requests: + pull_request5433
2018-02-11 17:08:39mariocj89create