velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nat...@esha.com>
Subject Re: Log4j Problem
Date Thu, 03 Apr 2003 15:07:48 GMT
Richard said:
> I'm using Tomcat+Struts+Velocity+Velocity-Tools.
> It's not possible to use Log4J ?

it is possible.  i do it all the time, but it's not set up to "auto-detect"
log4j and use it.  you have to specify that you want Velocity to use log4j
in your velocity.properties.  something like this is appropriate:

runtime.log.logsystem.class =
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
runtime.log.logsystem.log4j.category = org.apache.velocity

Nathan Bubna
nathan@esha.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message