Hi Bret, Maybe this document (http://jakarta.apache.org/cactus/integration/manual/howto_config.html#l ogging) will help?
Thanks -Vincent > -----Original Message----- > From: Bret Kumler [mailto:[EMAIL PROTECTED] > Sent: 16 April 2004 21:49 > To: 'Cactus Users List' > Subject: RE: cactusproperty tag question > > Hi Vincent, > > Here are the client's properties content. > > > # Properties for configuring Log4j > # This is the configuring for logging on the JUnit side (i.e. the client > side) > > log4j.appender.cactus = org.apache.log4j.FileAppender > log4j.appender.cactus.File = cactus_client.log > log4j.appender.cactus.Append = true > log4j.appender.cactus.layout = org.apache.log4j.PatternLayout > log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p > %-30.30c{2} %x - %m %n > > # Any application log which uses Log4J will be logged to the Cactus log > file > log4j.rootCategory=DEBUG, cactus > > # By default we don't log at the DEBUG level for Cactus log, in order not > to > generate too > # many logs. However, should a problem arise and logs need to be sent to > the > Cactus dev team, > # then we will ask you to change this to DEBUG. > log4j.category.org.apache.cactus = WARN, cactus > log4j.additivity.org.apache.cactus=true > > # Don't show debug logs for HttpClient > log4j.category.org.apache.commons.httpclient = WARN, cactus > log4j.additivity.org.apache.commons.httpclient=false > log4j.category.httpclient = WARN, cactus > log4j.additivity.httpclient=true > > > Here are the server's properties file contents. > > > # Properties for configuring Log4j > # This is the configuring for logging on the server side > > log4j.appender.cactus = org.apache.log4j.FileAppender > log4j.appender.cactus.File = cactus_server.log > log4j.appender.cactus.Append = true > log4j.appender.cactus.layout = org.apache.log4j.PatternLayout > log4j.appender.cactus.layout.ConversionPattern = %d{ABSOLUTE} [%t] %-5p > %-30.30c{2} %x - %m %n > > # Any application log which uses Log4J will be logged to the Cactus log > file > log4j.rootCategory=DEBUG, cactus > > # By default we don't log at the DEBUG level for Cactus log, in order not > to > generate too > # many logs. However, should a problem arise and logs need to be sent to > the > Cactus dev team, > # then we will ask you to change this to DEBUG. > log4j.category.org.apache.cactus = WARN, cactus > log4j.additivity.org.apache.cactus=true > > > > > > -----Original Message----- > From: Vincent Massol [mailto:[EMAIL PROTECTED] > Sent: Friday, April 16, 2004 11:43 AM > To: 'Cactus Users List' > Subject: RE: cactusproperty tag question > > Hi Bret, > > The problem is probably not with <cactusproperty> which is only used to > pass properties to the different JVMs. The problem is likely to be in > your log_client.properties and log_server.properties files. > > Can you show us your config files? > > Thanks > -Vincent > > > -----Original Message----- > > From: Bret Kumler [mailto:[EMAIL PROTECTED] > > Sent: 16 April 2004 20:23 > > To: [EMAIL PROTECTED] > > Subject: cactusproperty tag question > > > > I have the following cactus task defined. > > > > For some reason the <cactusproperty> isn't working. > > > > > > > > I can not see the log files. > > > > > > > > <cactus warfile="${test.home}/${app.name}.war" > > > > fork="yes" failureproperty="tests.failed" haltonerror="true"> > > > > > > > > <classpath> > > > > <path refid="tests.classpath"/> > > > > <pathelement path="${build.home}/testsrc/properties"/> > > > > <pathelement location="${build.home}/WEB-INF/classes"/> > > > > <pathelement location="${build.home}/testsrc.jar"/> > > > > <pathelement location="${lib.dir}/log4j"/> > > > > </classpath> > > > > > > > > <!-- Configure the cactus task for logging --> > > > > <cactusproperty server="false" > > > > > > > propertiesFile="${basedir}/${cactus.dir}/properties/log_client.propertie > s" > > /> > > > > <cactusproperty server="true" > > > > > > > propertiesFile="${basedir}/${cactus.dir}/properties/log_server.propertie > s" > > /> > > > > > > > > <containerset> > > > > <tomcat5x if="cactus.home.tomcat5x" > > > > dir="${catalina.home}" > serverxml="${basedir}/conf/server.xml" > > port="${cactus.port}" > > > > output="${test.home}/cactusreports/tomcat5x.out" > > > > todir="${test.home}/cactusreports"/> > > > > </containerset> > > > > <formatter type="brief" usefile="false"/> > > > > <formatter type="xml"/> > > > > <batchtest> > > > > <fileset dir="${testsrc}"> > > > > <include name="**/*Test.java"/> > > > > <exclude name="**/*TestAll.java"/> > > > > </fileset> > > > > </batchtest> > > > > </cactus> > > > > > > > > > > > > On a side not I notice CactusStrutsTestCase doesn't log messages when > I > > try > > to log them with log4j. When I use System.out.println I see them in > the > > "tomcat5x.out" log file. > > > > > > > > Am I doing something wrong? > > > > > > > > > > > > Thanks > > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
