logging to stderr instead of stdout

This commit is contained in:
Jochen Stärk
2020-09-06 15:18:53 +02:00
parent 70d110ef6d
commit c1fa8ec608
4 changed files with 40 additions and 10 deletions

View File

@@ -1,8 +1,9 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
<target>System.err</target>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
@@ -24,6 +25,6 @@
<!-- Configure so that it outputs to both console and log file -->
<root level="INFO">
<appender-ref ref="FILE" />
<!-- appender-ref ref="STDOUT" /-->
<!-- appender-ref ref="STDERR" /-->
</root>
</configuration>
</configuration>