-
Notifications
You must be signed in to change notification settings - Fork 0
/
logback-test.xml
35 lines (31 loc) · 1.12 KB
/
logback-test.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="SystemErr"
class="ch.qos.logback.core.ConsoleAppender" target="System.err">
<target>System.err</target>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
<level>ERROR</level>
</filter>
</appender>
<appender name="SystemOut"
class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
<level>INFO</level>
</filter>
</appender>
<root level="INFO">
<appender-ref ref="SystemErr" />
<appender-ref ref="SystemOut" />
</root>
</configuration>