log4j-3rd.xml
2.61 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false" threshold="null">
<appender class="com.primeton.ext.common.logging.AppConsoleAppender" name="CONSOLE">
<param name="Target" value="System.out"/>
<param name="Threshold" value="ERROR"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss,SSS}][%p][%C][Line:%L] %m%n"/>
</layout>
</appender>
<appender class="com.primeton.ext.common.logging.AppRollingFileAppender" name="ROLLING_FILE">
<param name="Threshold" value="INFO"/>
<param name="Encoding" value="UTF-8"/>
<param name="File" value="logs/jar-3rd.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="10MB"/>
<param name="MaxBackupIndex" value="10"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{yyyy-MM-dd HH:mm:ss,SSS}][%p][%C][Line:%L] %m%n"/>
</layout>
</appender>
<!-- thirder party;s jar logger definition -->
<!-- eos -->
<logger additivity="false" name="com.eos">
<level value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- primeton -->
<logger additivity="false" name="com.primeton">
<level value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- jbossCache -->
<logger additivity="false" name="org.jboss.cache">
<level value="OFF"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- jgroup -->
<logger additivity="false" name="org.jgroups">
<level value="OFF"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- quartz -->
<logger additivity="false" name="org.quartz">
<level value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- spring -->
<logger additivity="false" name="org.springframework">
<level value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- apache common -->
<logger additivity="false" name="org.apache.commons">
<level value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- cglib -->
<logger additivity="false" name="net.sf.cglib">
<level value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- mchange -->
<logger additivity="false" name="com.mchange">
<level value="ERROR"/>
<appender-ref ref="CONSOLE"/>
</logger>
<!-- root logger -->
<!-- <root>
<level value="INFO"/>
<appender-ref ref="ROLLING_FILE"/>
<appender-ref ref="CONSOLE"/>
</root> -->
</log4j:configuration>