10

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

Al-Punk
  • 3,531
  • 6
  • 38
  • 56

1 Answers1

12

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.

glytching
  • 44,936
  • 9
  • 114
  • 120
  • It does the job! – Al-Punk Oct 10 '18 at 14:16
  • Thanks for the answer, just wondering how can I make all the log info display in the console or save them in a file so that I can have a look? It seems I can only check part of the info in the console. – Cecilia Nov 07 '19 at 11:20