logger.info / logger.error with logger.addHandler - how to split streams?

2016-12-26 Thread Alec Taylor
So I'm putting .info in one StringIO and .error in another StringIO. How do I stop them from both being put into both? Code: http://ideone.com/Nj6Asz -- https://mail.python.org/mailman/listinfo/python-list

Re: windows utf8 & lxml

2016-12-26 Thread Stefan Behnel
Hi! Sayth Renshaw schrieb am 20.12.2016 um 12:53: > I have been trying to get a script to work on windows that works on mint. The > key blocker has been utf8 errors, most of which I have solved. > > Now however the last error I am trying to overcome, the solution appears to > be to use the .dec

Re: logger.info / logger.error with logger.addHandler - how to split streams?

2016-12-26 Thread gst
Le lundi 26 décembre 2016 10:34:48 UTC-5, Alec Taylor a écrit : > So I'm putting .info in one StringIO and .error in another StringIO. > > How do I stop them from both being put into both? > > Code: http://ideone.com/Nj6Asz Hi, it's doable with filter on the handlers: def exact_filter(level)