Open jvican opened 8 years ago
I wouldn't call it a bug, but anyway, we have two options:
util/Logger.scala
samples/src/multi-jvm/resources/logback-test.xml
I'd suggest to go for option (2) with
core/src/main/resources/logback.xm
:
<configuration>
<conversionRule conversionWord="coloredLevel" converterClass="silt.util.ColoredLoggerLevel" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%coloredLevel %-35logger{35} - %message%n%xException{5}</pattern>
</encoder>
</appender>
<logger name="io.netty" level="OFF" />
...
<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>
</configuration>
and samples/src/multi-jvm/resources/logback-test.xml
:
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%level %-35logger{35} - %message%n%xException{5}</pattern>
</encoder>
</appender>
<logger name="io.netty" level="OFF" />
...
<root level="DEBUG">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Choose what ever you prefer @jvican
Thanks for the reply @normenmueller. I'm going with (2). This fix will be included in #9.
When running the first example, I get:
where the second column is colored and the first one is not.
Do you know how to fix this @normenmueller?