forked from ulrikpedersen/swmr-testapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Log4cxxConfig.xml
36 lines (31 loc) · 1.23 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
<?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"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %12c{1} (%F:%L) - %m%n"/>
</layout>
</appender>
<!-- Output the log message to log file
-->
<appender name="appxNormalAppender" class="org.apache.log4j.FileAppender">
<param name="file" value="swmr-testapp.log" />
<param name="append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p\t%C{2}\t(%F:%L)\t%m%n" />
</layout>
</appender>
<root>
<priority value="debug" />
<appender-ref ref="appxNormalAppender"/>
<appender-ref ref="appxConsoleAppender"/>
</root>
<!-- Specify the level for some specific categories -->
<category name="functionA" >
<priority value ="info" />
<appender-ref ref="appxNormalAppender"/>
<appender-ref ref="appxConsoleAppender"/>
</category>
</log4j:configuration>