Different consoles for stderr and stdout in Intellij IDEA?

Stderr and stdout messages are displayed in the same IntelliJ IDEA console log (usually in black and red). Is there an easy way to suppress stderr or stdout messages or redirect two different threads to different console windows?

+5
source share
2 answers

This plugin is called Grep Console , which allows you to use regex agasint for console outputs. In this way, you can filter the outputs according to your needs.

0
source

How can I deal with this situation, I need to redirect stdout to a file, for example stdout.log , when the system starts.

Then configure IDEA Run/Debug Configurations - Logs to add the log file where stdout.log is located

That way, you can get the stdin newly created console and stderr on the old output.

0
source

Source: https://habr.com/ru/post/1247201/


All Articles