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

Mario Corchero mariocj89 at gmail.com
Sat Feb 10 16:09:42 EST 2018


Sure thing! Will prepare it tomorrow.

On Sat, 10 Feb 2018 at 21:00, Chris Angelico <rosuav at gmail.com> wrote:

> 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
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180210/85786664/attachment.html>


More information about the Python-ideas mailing list