forked from spotify/logging-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logback_test.xml
32 lines (27 loc) · 1.07 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
<configuration>
<property name="ident" value="example" scope="context" />
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} %property{ident}[%property{pid}]: [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<target>System.err</target>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
</appender>
<appender name="trace" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} %property{ident}[%property{pid}]: [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<target>System.err</target>
<filter class="com.spotify.logging.logback.LevelRangeFilter">
<levelMin>TRACE</levelMin>
<levelMax>INFO</levelMax>
</filter>
</appender>
<!--<root level="trace">-->
<root level="all">
<appender-ref ref="console"/>
<appender-ref ref="trace"/>
</root>
</configuration>