forked from adamfisk/LittleProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4j.xml
37 lines (37 loc) · 1.52 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender class="org.apache.log4j.RollingFileAppender" name="RollingTextFile">
<param value="log.txt" name="File"/>
<param value="5" name="MaxBackupIndex"/>
<param value="50MB" name="MaxFileSize"/>
<layout class="org.apache.log4j.PatternLayout"/>
</appender>
<appender class="org.apache.log4j.ConsoleAppender" name="stdout">
<layout class="org.apache.log4j.PatternLayout">
<param value="%-6r %d{ISO8601} %-5p [%t] %c{2} (%F:%L).%M() - %m%n" name="ConversionPattern"/>
</layout>
</appender>
<appender class="org.apache.log4j.FileAppender" name="TextFile">
<param value="false" name="Append"/>
<param value="log.txt" name="File"/>
<layout class="org.apache.log4j.PatternLayout">
<param value="%-6r %d{ISO8601} %-5p [%t] %c{2} (%F:%L).%M() - %m%n" name="ConversionPattern"/>
</layout>
</appender>
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
<param name="BufferSize" value="500"/>
<appender-ref ref="TextFile"/>
<appender-ref ref="stdout"/>
</appender>
<logger name="org.eclipse.jetty">
<level value="off"/>
</logger>
<logger name="org.littleshoot.proxy">
<level value="info"/>
</logger>
<root>
<level value="warn"/>
<appender-ref ref="ASYNC"/>
</root>
</log4j:configuration>