-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.xml
executable file
·32 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
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %p [%t] %c - %m%n" />
</layout>
</appender>
<appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<param name="File" value="log/crawler.log" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %p [%t] %c - %m%n" />
</layout>
</appender>
<logger name="no.bekk.mightycrawler" additivity="false">
<level value="info" />
<appender-ref ref="FILE" />
<appender-ref ref="CONSOLE" />
</logger>
<logger name="org.apache.http" additivity="false">
<level value="error" />
<appender-ref ref="FILE" />
<appender-ref ref="CONSOLE" />
</logger>
<root>
<priority value="info" />
<appender-ref ref="CONSOLE" />
</root>
</log4j:configuration>