[Python-ideas] Logging: a more perseverent version of the StreamHandler?

2018-01-30 Thread liam marsh
Hello, and sorry for the late answer, Le 29/01/2018 à 01:41, Steven D'Aprano a écrit : [...] I'll comment on the email: for some reason, the implementation you give has extraneous pipes | at the start and end of each line, e.g.: This is... unexpected, and doesn't even show on my version of the

[Python-ideas] Logging: a more perseverent version of the StreamHandler?

2018-01-26 Thread liam marsh
Hello, Some time ago, I set up some logging using stdout in a program with the `stdout_redirected()` context manager, which had to close and reopen stdout to work. Unsurprisingly, the StreamHandler didn't take it well. So I made a Handler class which is able to reload the stream (AKA get the