Separate stderr and stdout

I use the logging module for logging error messages and some of my scripts dump their output to stdout.

In PyCharm, these get mixed up in the 'Run' output window in an unpredictable way. It's not hard to see which is which, thanks to coloring, but I would very much prefer to be able to separate standard output and standard error.

On the command line, it's easy (and this is by design) along the lines of:

    python --log_level debug 1> output.txt 2> logs.txt

Is there some way to get PyCharm to do something similar and provide separate tabs for the Run stdout and Run stderr?

Please sign in to leave a comment.