IntelliJ output console INFO colour

前端 未结 2 1055
醉话见心
醉话见心 2021-02-18 17:11

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 a

2条回答
  •  情书的邮戳
    2021-02-18 17:40

    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.

提交回复
热议问题