[Python-ideas] Easing set-up of of console python applications
Chris Angelico
rosuav at gmail.com
Sat Feb 10 15:59:26 EST 2018
On Sun, Feb 11, 2018 at 7:49 AM, Mario Corchero <mariocj89 at gmail.com> 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 underneath
that one.
> The objective is to log *up to a level* to stdout and the rest to stderr.
>
> See the example console handler here and the filter here.
>
> Good point about just adding it to the how-to.
You know, I think BOTH of those are worth adding. Especially the
filter method, which is pretty concise and easy to build on. Want to
write up a docs patch?
ChrisA
More information about the Python-ideas
mailing list