aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-08 21:57:26 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:43 +0100
commit7d6278c01af131ea233c883d690af0c7426c4ebf (patch)
tree23bf92e6fae4433053b03f66528565244f3fbe08
parent60233728c913bb419551e0315cd2fa6c09fdf10b (diff)
downloadusdx-7d6278c01af131ea233c883d690af0c7426c4ebf.tar.gz
usdx-7d6278c01af131ea233c883d690af0c7426c4ebf.tar.xz
usdx-7d6278c01af131ea233c883d690af0c7426c4ebf.zip
added log4cxx config
added log4cxx.xml DOM-config (log4j compatible) ConsoleAppender for ERROR messages RollingFileAppender for ALL messages (with 4 backup files and max. 400KB)
Diffstat (limited to '')
-rw-r--r--test/log4cxx.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/log4cxx.xml b/test/log4cxx.xml
new file mode 100644
index 00000000..c5920dba
--- /dev/null
+++ b/test/log4cxx.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+
+ <appender name="Roll" class="org.apache.log4j.rolling.RollingFileAppender">
+ <triggeringPolicy class="org.apache.log4j.rolling.SizeBasedTriggeringPolicy">
+ <param name="MaxFileSize" value="400KB" />
+ </triggeringPolicy>
+
+ <rollingPolicy class="org.apache.log4j.rolling.FixedWindowRollingPolicy">
+ <param name="MaxIndex" value="4" />
+ <param name="FileNamePattern" value="debug.%i.log" />
+ </rollingPolicy>
+
+ <param name="FileName" value="debug.log" />
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%-6r [%-5p] %F:%L - %M - %m%n" />
+ </layout>
+ </appender>
+
+
+ <appender name="Console" class="org.apache.log4j.ConsoleAppender">
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%-6r [%-5p] %F:%L - %M - %m%n" />
+ </layout>
+
+ <filter class="org.apache.log4j.filter.LevelRangeFilter">
+ <param name="LevelMin" value="ERROR" />
+ </filter>
+ </appender>
+
+
+ <root>
+ <priority value ="ALL" />
+ <appender-ref ref="Console" />
+ <appender-ref ref="Roll"/>
+ </root>
+
+</log4j:configuration>