File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
modules/loader/src/main/resources Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11<configuration >
2- <appender name =" STDOUT " class =" ch.qos.logback.core.ConsoleAppender" >
2+ <appender name =" COLOR " class =" ch.qos.logback.core.ConsoleAppender" >
33 <!-- On Windows machines setting withJansi to true enables ANSI
44 color code interpretation by the Jansi library. This requires
55 org.fusesource.jansi:jansi:1.8 on the class path. Note that
1111 </encoder >
1212 </appender >
1313
14+ <appender name =" NOCOLOR" class =" ch.qos.logback.core.ConsoleAppender" >
15+ <encoder >
16+ <pattern >[%thread] %-5level %logger{15} - %msg %n</pattern >
17+ </encoder >
18+ </appender >
19+
20+ <variable name =" LOG_MODE" value =" ${LOG_MODE:-NOCOLOR}" />
1421 <appender name =" ASYNC" class =" ch.qos.logback.classic.AsyncAppender" >
15- <appender-ref ref =" STDOUT " />
22+ <appender-ref ref =" ${LOG_MODE} " />
1623 </appender >
1724
1825 <!-- Set environment varialbe LOG_LEVEL=DEBUG to override this setting -->
You can’t perform that action at this time.
0 commit comments