velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: setting up velocity to log to servlet log
Date Mon, 10 Jan 2005 14:59:32 GMT
Hi John,

> Right now, Tomcat is set up to log to
> ${TOMCAT_HOME}/logs/localhost_log.yyyy-mm-dd.txt (yyyy-mm-dd being the
> current date, of course).
> I tire of Velocity using the AvalonLogSystem and logging to my app tree,
> instead I wish to point it to the servlet logs (at least for this
> particular app).

## snip

> Any ideas for this noob? :-)

I recommend using VelocityViewServlet, which by default uses
ServletLogger, which logs using ServletContext#log().
  http://jakarta.apache.org/velocity/tools/view/
  http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/view/servlet/ServletLogger.html


Best regards,
-- Shinobu

--
Shinobu "Kawai" Yoshida <shinobu.kawai@gmail.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