Re: [Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Mario Corchero
Sure thing! Will prepare it tomorrow. On Sat, 10 Feb 2018 at 21:00, Chris Angelico wrote: > On Sun, Feb 11, 2018 at 7:49 AM, Mario Corchero > wrote: > > The recipe as you pointed out works by logging to both (just using > multiple > > handlers). > > Yep.

Re: [Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Chris Angelico
On Sun, Feb 11, 2018 at 7:49 AM, Mario Corchero wrote: > The recipe as you pointed out works by logging to both (just using multiple > handlers). Yep. It's a "forking" setup. What you're proposing is a "splitting" setup, which would be a great recipe to put immediately

Re: [Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Mario Corchero
The recipe as you pointed out works by logging to both (just using multiple handlers). The objective is to log *up to a level* to stdout and the rest to stderr. See the example console handler here and the

Re: [Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Chris Angelico
On Sun, Feb 11, 2018 at 6:29 AM, Mario Corchero wrote: > Hello All! > > I got asked how to configure the logging stack to be able to output directly > to console using both stdout and stderr and I could not really find a great > answer as adding both as StreamHandlers will

[Python-ideas] Easing set-up of of console python applications

2018-02-10 Thread Mario Corchero
Hello All! I got asked how to configure the logging stack to be able to output directly to console using both stdout and stderr and I could not really find a great answer as adding both as StreamHandlers will result in error and above messages going to stdout. The usecase is having a cli or app