velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Rodriguez" <jr...@columbia.edu>
Subject RE: setting up velocity to log to servlet log
Date Mon, 10 Jan 2005 15:03:25 GMT
Thanks for your quick response, Shinobu.

While this appears to be a great model to use and explore for my future
projects, my deadline prevents me from investing time to familiarize
myself with alternatives at this time.

Any suggestions on how to fix this, using what is already in place?

Respectfully,
-John

-----Original Message-----
From: Shinobu Kawai [mailto:shinobu.kawai@gmail.com] 
Sent: Monday, January 10, 2005 10:00 AM
To: Velocity Users List
Subject: Re: setting up velocity to log to servlet log

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/too
ls/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


---------------------------------------------------------------------
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