jos*_*929 41 intellij-idea spring-boot
有没有人想出如何在Intellij Idea中为Spring Boot应用程序提供颜色输出?
jos*_*929 86
使用Mac,Intellij Idea 14和Spring Boot v1.2.2.RELEASE,您只需设置:
spring.output.ansi.enabled=ALWAYS
我已将此添加为VM选项(-Dspring.output.ansi.enabled=ALWAYS).效果很好!
只需将这些属性添加到 IntelliJ IDEA 的 application.properties 中:
spring.main.banner-mode=off
spring.output.ansi.enabled=ALWAYS
Run Code Online (Sandbox Code Playgroud)
在application.properties中使用(例如)以下行:
logging.pattern.console= %d{yyyy-MMM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n
Run Code Online (Sandbox Code Playgroud)
如果你想要几乎类似于Spring Boot,你可以使用这样的模式:
%date %highlight(%-5level) [%12.12thread] %cyan(%-40.40logger{40}) : %msg %n
Run Code Online (Sandbox Code Playgroud)
小智 6
| 归档时间: |
|
| 查看次数: |
23524 次 |
| 最近记录: |