-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.xml
29 lines (26 loc) · 1.23 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
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true" xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<!-- did not see behavior difference with log4j if set true; trace and debug printouts still collide sometimes -->
<param name="ImmediateFlush" value="true"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" / -->
<param name="ConversionPattern" value="%d{HH:mm:ss} %-5p %c{1}:%L - %m%n" />
</layout>
</appender>
<!-- writes log.html to the Project level directory -->
<appender name="htmlAppender" class="org.apache.log4j.FileAppender">
<param name="File" value="log.html" />
<layout class="org.apache.log4j.HTMLLayout">
<param name="Title" value="**** ValidateConfigVsClass ****"/>
<param name="LocationInfo" value="true"/>
</layout>
</appender>
<root>
<!-- priority value ="trace"/ -->
<priority value ="info"/>
<appender-ref ref="console"/>
<appender-ref ref="htmlAppender"/>
</root>
</log4j:configuration>