-
Notifications
You must be signed in to change notification settings - Fork 1
/
log4j.xml
30 lines (30 loc) · 1.07 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
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
<Properties>
<Property name="LOG_DIR">/usr/local/tomcat/logs</Property>
</Properties>
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p - %m%n" />
</Console>
<RollingFile name="rollingFile" fileName="${LOG_DIR}/debugging.out" filePattern="${LOG_DIR}/debugging.%d{dd-MMM}.out.gz" ignoreExceptions="false">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p - %m%n"/>
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10MB" />
<TimeBasedTriggeringPolicy />
</Policies>
<DefaultRolloverStrategy max="5" />
</RollingFile>
</Appenders>
<Loggers>
<Logger name="pl.psnc.dl.ege" level="debug" additivity="false">
<AppenderRef ref="rollingFile"/>
</Logger>
<Root level="warn" additivity="false">
<AppenderRef ref="rollingFile"/>
<AppenderRef ref="console"/>
</Root>
</Loggers>
</Configuration>