> -----Original Message----- > From: Raible, Matt [mailto:[EMAIL PROTECTED]] > Sent: 19 February 2003 22:59 > To: '[EMAIL PROTECTED]' > Subject: Turning off logging > > I'm trying to turn off cactus' logging by adding the following two lines > to > my log4j.properties file: > > log4j.category.org.apache.cactus=WARN
This may not be correct. Don't you need to specify the appender too? > log4j.additivity.org.apache.cactus=false > > My "test-cactus" task is as follows: > > <target name="test-cactus" depends="deploy" if="tomcat.home" > description="Runs Cactus tests in Tomcat, starts/stops server"> > <echo>running tests at > http://${tomcat.server}:${tomcat.port}/${webapp.name}</echo> > <runservertests > > testURL="http://${tomcat.server}:${tomcat.port}/${webapp.name}" > startTarget="start.tomcat" > stopTarget="stop.tomcat" > testTarget="test-web"> > </runservertests> > </target> > > This calls the "test-web" target and uses a specific testcase if > specified. > This target sets the classpath to log4.properties, log_client.properties > and > log_server.properties - but editing them doesn't seem to have any effect. >From Cactus 1.4 onwards, you need to provide log4j.properties only to both client side (in your junit test runner classpath) and server side (usually in your webapp/WEB-INF/classes directory). This is unless you're using the log4j feature for overriding the default configuration file name. Thus, log_client.properties and log_server.properties are not needed and won't be used by cactus. Maybe this is the problem? Check http://jakarta.apache.org/cactus/howto_config.html#logging Thanks -Vincent > > <target name="test-web" depends="package-web" > description="Test web module"> > <antcall target="test-module" inheritAll="true"> > <param name="module" value="web"/> > <!-- add classpath for log_client.properties for cactus--> > <param name="additional.src.dirs" > value="${webapp.target}/WEB-INF/classes"/> > <reference refid="web.test.classpath" > torefid="test.classpath" > /> > </antcall> > </target> > > > Ideas are appreciated. > > Matt > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]