Permalink
Browse files

add log4j.properties for testing; output is to build/test/logs/system…

….log. patch by jbellis; reviewed by Jun Rao for #64
  • Loading branch information...
1 parent 19926e8 commit b4e4e917d1e641104e4c7361e6d8b6015f179b49 Jonathan Ellis committed Apr 7, 2009
Showing with 11 additions and 1 deletion.
  1. +3 −1 build.xml
  2. +8 −0 test/conf/log4j.properties
View
@@ -12,6 +12,7 @@
<property name="javadoc.dir" value="${build.dir}/javadoc"/>
<property name="test.dir" value="${basedir}/test"/>
<property name="test.classes" value="${build.dir}/test/classes"/>
+ <property name="test.conf" value="${test.dir}/conf"/>
<property name="final.name" value="cassandra"/>
<!-- http://cobertura.sourceforge.net/ -->
@@ -148,12 +149,13 @@
haltOnFailure="true"
verbose="2">
<sysproperty key="net.sourceforge.cobertura.datafile" file="${cobertura.datafile}"/>
- <jvmarg value="-Dstorage-config=test/conf"/>
+ <jvmarg value="-Dstorage-config=${test.conf}"/>
<classpath>
<pathelement location="${cobertura.classes.dir}"/>
<path refid="cassandra.classpath" />
<pathelement location="${test.classes}"/>
<pathelement location="${cobertura.dir}/cobertura.jar"/>
+ <pathelement location="${test.conf}"/>
</classpath>
<classfileset dir="${test.classes}" includes="**/*.class" />
</testng>
@@ -0,0 +1,8 @@
+log4j.rootLogger=DEBUG,R
+
+# rolling log file ("system.log
+log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.R.DatePattern='.'yyyy-MM-dd-HH
+log4j.appender.R.layout=org.apache.log4j.PatternLayout
+log4j.appender.R.layout.ConversionPattern=%5p [%t] %d{ISO8601} %F (line %L) %m%n
+log4j.appender.R.File=build/test/logs/system.log

0 comments on commit b4e4e91

Please sign in to comment.