forked from esaude/data-migration-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.xml
40 lines (32 loc) · 1.18 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
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- Configure a file appender. Allows logs to be written to a file -->
<appender name="FA" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="info" />
<param name="File" value="log.log" />
<param name="Append" value="true" />
<param name="MaxFileSize" value="100KB" />
<param name="MaxBackupIndex" value="0" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{dd-MM-yyyy HH:mm:ss} - %m%n" />
</layout>
</appender>
<!-- Configure a console appender. Allows logs to be written to the console -->
<appender name="CA" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d{dd-MM-yyyy HH:mm:ss} - %m%n" />
</layout>
</appender>
<logger name="org.esaude">
<level value="info" />
</logger>
<!-- Root debugger -->
<root>
<appender-ref ref="FA" />
<appender-ref ref="CA" />
</root>
</log4j:configuration>