forked from eXist-db/exist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4j.xml
270 lines (228 loc) · 10.1 KB
/
log4j.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- This is the configuration for LOG4J -->
<!-- $Id$ -->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- ========[APPENDERS]======== -->
<!--
writes log messages to the console. It outputs file name,
method name and line number of the caller. This is slow,
so just use it for debugging.
-->
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{DATE} [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<!--
the following appenders write to files
-->
<appender name="exist.core" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/exist.log"/>
<param name="MaxFileSize" value="5MB"/>
<param name="MaxBackupIndex" value="3"/>
<param name="Encoding" value="UTF-8"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.xacml" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/xacml.log"/>
<param name="MaxFileSize" value="500KB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.xmldb" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/xmldb.log"/>
<param name="MaxFileSize" value="2000KB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.urlrewrite" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/urlrewrite.log"/>
<param name="MaxFileSize" value="500KB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.profiling" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/profile.log"/>
<param name="MaxFileSize" value="500KB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.scheduler" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/scheduler.log"/>
<param name="MaxFileSize" value="500KB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.ehcache" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/ehcache.log"/>
<param name="MaxFileSize" value="500KB"/>
<param name="Encoding" value="UTF-8"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.betterform" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/betterform.log"/>
<param name="MaxFileSize" value="500KB"/>
<param name="Encoding" value="UTF-8"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.restxq" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/restxq.log"/>
<param name="MaxFileSize" value="5MB"/>
<param name="MaxBackupIndex" value="3"/>
<param name="Encoding" value="UTF-8"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.backup" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/backup.log"/>
<param name="MaxFileSize" value="500KB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<appender name="exist.mdStorage" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/mdStorage.log"/>
<param name="MaxFileSize" value="500KB"/>
<param name="Encoding" value="UTF-8"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<!--
<appender name="exist.statistics" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${exist.home}/webapp/WEB-INF/logs/statistics.log"/>
<param name="MaxFileSize" value="5MB"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
-->
<!-- the null appender writes to no where -->
<appender name="null" class="org.apache.log4j.varia.NullAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%F [%M]:%L) - %m %n"/>
</layout>
</appender>
<!--
LF5 appender. Using this appender in an appender-ref will
pop up the LogFactor5 gui.
-->
<appender name="lf5" class="org.apache.log4j.lf5.LF5Appender">
<param name="MaxNumberOfRecords" value="1000"/>
</appender>
<!-- ========[CATEGORIES]======== -->
<category name="org.exist.jetty.JettyStart" additivity="false">
<priority value="trace"/>
<appender-ref ref="console"/>
<appender-ref ref="exist.core"/>
<appender-ref ref="exist.xmldb"/>
</category>
<category name="org.exist.jetty.StandaloneServer" additivity="false">
<priority value="trace"/>
<appender-ref ref="console"/>
<appender-ref ref="exist.core"/>
<appender-ref ref="exist.xmldb"/>
</category>
<category name="xquery.profiling" additivity="false">
<priority value="trace"/>
<appender-ref ref="exist.profiling"/>
</category>
<category name="org.exist.statistics" additivity="false">
<priority value="debug"/>
<appender-ref ref="exist.core"/>
<!--
<appender-ref ref="exist.statistics"/>
-->
</category>
<category name="org.exist.backup.SystemExport" additivity="false">
<priority value="trace"/>
<appender-ref ref="exist.backup"/>
</category>
<category name="org.exist.security.xacml" additivity="false">
<priority value="warn"/>
<appender-ref ref="exist.xacml"/>
</category>
<category name="org.exist.xmldb" additivity="false">
<priority value="debug"/>
<appender-ref ref="exist.xmldb"/>
</category>
<category name="org.exist.xmlrpc" additivity="false">
<priority value="debug"/>
<appender-ref ref="exist.core"/>
</category>
<category name="org.exist.http.urlrewrite" additivity="false">
<!-- set to "trace" to get detailed info on URL rewriting -->
<priority value="info"/>
<appender-ref ref="exist.urlrewrite"/>
</category>
<category name="org.exist.extensions.exquery.restxq" additivity="false">
<priority value="info"/>
<appender-ref ref="exist.restxq"/>
</category>
<!-- Logging 3rd party libraries -->
<category name="org.eclipse.jetty" additivity="false">
<priority value="info"/>
<appender-ref ref="console"/>
</category>
<category name="httpclient" additivity="false">
<priority value="info"/>
<appender-ref ref="console"/>
</category>
<category name="net.sf.ehcache" additivity="false">
<priority value="debug"/>
<appender-ref ref="exist.ehcache"/>
</category>
<!-- Milton WebDAV framework -->
<category name="com.bradmcevoy" additivity="false">
<priority value="info"/>
<appender-ref ref="exist.core"/>
</category>
<!-- Apache Axis: 'debug' produces a large amount of debugging output -->
<category name="org.apache" additivity="false">
<priority value="off"/>
<appender-ref ref="console"/>
</category>
<!-- Quartz scheduler -->
<category name="org.quartz" additivity="false">
<priority value="info"/>
<appender-ref ref="exist.scheduler"/>
</category>
<category name="org.exist.storage.SystemTask" additivity="false">
<priority value="debug"/>
<appender-ref ref="exist.scheduler"/>
</category>
<!-- betterFORM extension -->
<category name="de.betterform" additivity="false">
<priority value="warn"/>
<appender-ref ref="exist.betterform"/>
<!--
<appender-ref ref="console"/>
-->
</category>
<!-- Metadata Storage extension -->
<category name="mdStrage" additivity="false">
<priority value="warn"/>
<appender-ref ref="exist.mdStorage"/>
<!--
<appender-ref ref="console"/>
-->
</category>
<!-- ========[ROOT logger]======== -->
<root>
<priority value="info"/>
<appender-ref ref="exist.core"/>
</root>
</log4j:configuration>