Stderr and stdout messages appear in the same console log in IntelliJ IDEA (typically in black and in red). Is there a simple way to suppress either stderr or stdout messages or redirect the two different streams to different console windows?
Asked
Active
Viewed 3,658 times
2 Answers
2
How I deal with this situation is to redirect stdout
to a file, such as stdout.log
, when system begins.
Then Configuring IDEA's Run/Debug Configurations - Logs
to add a log file that locate stdout.log
Thus, you can get stdin
at console you just created and stderr
at old output.

SLKun
- 21
- 5
0
There is this plugin called Grep Console which allows you to use regex agasint the console outputs. Thus, it is possible to filter the outputs per your needs.

dambros
- 4,252
- 1
- 23
- 39
-
1I am aware of Grep Console. However, my output to stderr does not follow a particular pattern. Unfortunately, the legacy code in question duplicates output on stderr and stdout, which makes it rather hard to read. – Stefan Haberl Apr 15 '16 at 10:53