Skip to content

Commit 6506d08

Browse files
committed
Disable colored logging by default (close #63)
1 parent 7ff5622 commit 6506d08

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

modules/loader/src/main/resources/logback.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -11,8 +11,15 @@
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 -->

0 commit comments

Comments
 (0)