-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog4cxxConfig.xml
46 lines (41 loc) · 1.74 KB
/
log4cxxConfig.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
41
42
43
44
45
46
<?xml version="1.0" encoding="UTF-8" ?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- Output the log message to system console.-->
<appender name="appxConsoleAppender" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<param name="Threshold" value="info" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
</layout>
</appender>
<!-- Output the log message to log file-->
<appender name="appxNormalAppender" class="org.apache.log4j.FileAppender">
<param name="file" value="appxLogFile.log" />
<param name="append" value="true" />
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="2" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%t:%x] %C{2} (%F:%L) - %m%n" />
</layout>
</appender>
<appender name="ChainsawAppenderXML" class="org.apache.log4j.XMLSocketAppender">
<param name="RemoteHost" value="127.0.0.1"/>
<param name="Port" value="4448" />
<layout class="org.apache.log4j.xml.XMLLayout">
<param name="properties" value="true" />
<param name="locationinfo" value="true" />
</layout>
</appender>
<root>
<priority value="all" />
<appender-ref ref="appxNormalAppender"/>
<appender-ref ref="appxConsoleAppender"/>
<appender-ref ref="ChainsawAppenderXML"/>
</root>
<!-- Specify the level for some specific categories -->
<!--<category name="Delivery" >
<priority value ="info" />
<appender-ref ref="appxNormalAppender"/>
<appender-ref ref="appxConsoleAppender"/>
</category>-->
</log4j:configuration>