Had the exact same problem as here, this velocity.log on root thing is a common sight on appfuse projects. thankfully the VelocityTools project provides classes to easily configure this. I created the velocity.properties file and added just this line
runtime.log.logsystem.class=org.apache.velocity.tools.generic.log.CommonsLogLogSystem I had to add the velocity-tools-generic dependency to my pom and now all velocity logging goes through my commons logging in tomcat. I'm using appfuse with struts, here is the link that helped me out: http://velocity.apache.org/tools/devel/javadoc/org/apache/velocity/tools/generic/log/CommonsLogLogSystem.html Matt wrote: > > > You may have to create a velocity.properties file in WEB-INF/classes > and configure it to use log4j. Like I mentioned earlier, I'm not sure > how to do this. > > Matt > -- View this message in context: http://www.nabble.com/changing-output-file-for-velocity.log-tf2546516s2369.html#a13948659 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
