Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ output console INFO colour

Tags:

Does anyone know why IntelliJ is printing all log messages to my console in red coloured text? This make it really hard to distinguish between info and trace messages and the actual error messages that I need to see!

enter image description here

I'm using Tomee and CDI if this is relevant!

Thanks for your assistance,

Edit My setting all look okay within the preferences window:

enter image description here

like image 573
StuPointerException Avatar asked May 05 '16 15:05

StuPointerException


People also ask

How do I change the color of my console in Intellij?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. Select the setting pages related to consoles: Console Colors. Console Font.

How do I get full console log in Intellij?

In the run/debug configuration that will be used for launching the app, click the Logs tab. The Edit Log Files Aliases table displays the list of log files. Select Save console output to file Specify the path to the file.

How do I view output in Intellij?

Run tool window The Run tool window displays output generated by your application. If you are running multiple applications, each one is displayed in a tab named after the run/debug configuration applied. If you re-run an application, the new output overwrites the contents of the tab.


2 Answers

I have stacked with the same problem too. For now I'm using Intellij IDEA 2016.1 and there are no such opportunity to color logs the way you want. For me I have solved it by using Grep Console Plugin and recommend it to you.
It's easy to install and use.

Before enter image description here After enter image description here

like image 168
pavlo Avatar answered Oct 06 '22 01:10

pavlo


I had exactly same problem. Not sure about your case, but mine was following:

I use SLF4j Simple Logger Facade in my projects (because it is simple, yup). So it turned out that if you don't specify org.slf4j.simpleLogger.logFile property in simplelogger.properties file located in your resources folder (as well as if you don't have that file at all), the logger output defaults to System.err which is red in Idea.

The solution proposed by @pavlo sort of helped, but the base colour was still red.

So I added this line to src/java/main/resources/simplelogger.properties:

org.slf4j.simpleLogger.logFile=System.out 

and installed Grep Console Plugin. Together they perfectly solve the problem with SLF4j Simple Logger.

like image 26
Клаус Шварц Avatar answered Oct 06 '22 01:10

Клаус Шварц