加入Jansi 让windows cmd日志彩色输出

This commit is contained in:
qaiu
2023-12-15 10:14:00 +08:00
parent 2ef7efdc42
commit 56c68bcce6
2 changed files with 7 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<!--格式化输出:%d表示日期%thread表示线程名%-5level级别从左显示5个字符宽度%msg日志消息%n是换行符-->
<pattern>${CUSTOMER_PATTERN2}</pattern>