[issue32821] Add snippet on how to configure a "split" stream for console

2018-02-11 Thread Mario Corchero

Change by Mario Corchero :


--
keywords: +patch
pull_requests: +5433
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32821] Add snippet on how to configure a "split" stream for console

2018-02-11 Thread Mario Corchero

New submission from Mario Corchero :

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@python
components: Documentation
messages: 312003
nosy: docs@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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com