-
Notifications
You must be signed in to change notification settings - Fork 0
/
logback-test.xml
72 lines (65 loc) · 2.5 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<logger name="org.apache.spark" level="WARN"/>
<logger name="org.sparkproject" level="WARN"/>
<logger name="org.apache.solr" level="WARN" />
<logger name="ch.qos.logback" level="WARN" />
<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>
<appender name="DOC-CONVERSION-FAILED-ENTRIES-FILE"
class="ch.qos.logback.core.FileAppender">
<file>indexing-doc-conversion-failed-entries.error</file>
<!-- overwrite previous log -->
<append>false</append>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<!-- additivity=false ensures doc conversion data only goes to the doc conversion
log -->
<logger name="indexing-doc-conversion-failed-entries"
level="DEBUG" additivity="false">
<appender-ref ref="DOC-CONVERSION-FAILED-ENTRIES-FILE" />
</logger>
<appender name="STORE-WRITE-FAILED-ENTRIES-FILE"
class="ch.qos.logback.core.FileAppender">
<file>store-write-failed-entries.error</file>
<!-- overwrite previous log -->
<append>false</append>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<!-- additivity=false ensures doc write data only goes to the doc write
log -->
<logger name="store-write-failed-entries" level="DEBUG"
additivity="false">
<appender-ref ref="STORE-WRITE-FAILED-ENTRIES-FILE" />
</logger>
<root level="INFO">
<appender-ref ref="SystemErr" />
<appender-ref ref="SystemOut" />
</root>
</configuration>