Reputation: 6036
I would like to get colors in my running console of Spring Boot project with several modules for Intellij IDEA. Like this:
In ordinary case I can add in application.properties line
spring.output.ansi.enabled=ALWAYS
or
logging.pattern.console= %d{yyyy-MMM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n
In my current case I have several modules in my project
and it is not very convinient to add such lines in application.properties in every module so I would like to use some centralized solution (like one plugin to set colors for a IntelliJ console for every application).
Does anyone have some ideas?
Upvotes: 0
Views: 832
Reputation: 1
Using Windows and IntelliJ IDEA 2024.3 I just added to
Run Configurations -> Add VM Options
this flag:
-Dlog4j.skipJansi=false
Upvotes: 0
Reputation: 402095
Add -Dspring.output.ansi.enabled=ALWAYS
in the Template Spring Boot run/debug configuration VM Options:
Upvotes: 2