Al-Punk
Al-Punk

Reputation: 3660

Log Colors on IntelliJ Run Console

Having problems to see the colors for logs on the IntelliJ Run Console (windows).

Through Cygwin run, I see logs have different colors, e.g: enter image description here

On the IntelliJ run Console, same logs show without any colors: enter image description here

Upvotes: 12

Views: 8526

Answers (1)

glytching
glytching

Reputation: 47865

The GrepConsole plugin for IntelliJ supports something like this.

Here's some console output with no use of GrepConsole:

enter image description here

And here's the same console output again but with GrepConsole configured to render lines containing INFO in green and lines containing ERROR in red:

enter image description here

Here's the GrepConsole configuration:

enter image description here

Note: this does not exactly match what you asked for (highlighting a single word) but it's close and configuring GrepConsole for this behavour is very simple and GrepConsole also offers other useful features such a searching and filtering the console output.

Upvotes: 14

Related Questions