<div dir="ltr">Hello All!<br><br>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.<div><br></div><div>The usecase is having a cli or app that wants to log to console as other tools. Errors and bove to stderr and normal information to stdout. I know the recommended way in Python is to just use print on simple scripts, but it can happen that you import a library you want to see the logs of, and therefore you need to set the logging stack.</div><div><br></div><div>I have drafted two implementations but I am open to suggestions:</div><div>1) A "Console Handler" that uses multiple streams and chooses based on the level.<br>2) An inverted filter that can be used to filter everything above info for the stdout Stream handler.</div><div><br></div><div>What do you people think?<br>If people like it I'll send an issue + PR.</div><div><br></div><div>Regards,<br>Mario Corchero</div></div>