velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Rodriguez" <>
Subject RE: setting up velocity to log to servlet log
Date Mon, 10 Jan 2005 14:58:29 GMT
Another pecularity is that a 'blah.log' appears in another webapp
hierarchy, using AvalonLogSystem even though I commented it out in the file?

By now, I'm assuming that Log4j is not built into velocity-dep.jar and
so when it's looked for, it fails, and attempts to save face by
including AvalonLogSystem rather than complain to the user (possibly too
user-friendly since it may be a pain for sysadmins to debug?).  But why
what setting could cause it to log messages for one project into
another's file hierarchy?

Slightly befuddled,

-----Original Message-----
From: John Rodriguez [] 
Sent: Monday, January 10, 2005 8:55 AM
To: 'Velocity Users List'
Subject: setting up velocity to log to servlet log

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).
I read the manual and several docs online but I don't seem to be setting
it up correctly.  One way I figure this is the case, is that none of the
info messages I used to get in the WEB-INF/logs/velocity.log appear now,
Resource Loader Instantiated:
I set up my as follows:
runtime.log.logsystem.class =
runtime.log = blah.log #from my understanding, not needed, but just
renamed as check to make sure
This is all I do, and I reload the webapp in Tomcat and nothing happens.
I have seen configurations where the webapp creates logger objects at
runtime but I'd like to configure this outside of the code (via config
files or env vars) if possible.
All I want is to see something similar to the following in my
localhost_log.yyyy-mm-dd.txt (I'll worry about date formatting, etc.
2005-01-10 00:05:44 StandardContext[/jrod/myproject]: Reloading this
Context is completed    #tomcat logs
Thu Jan 06 17:37:03 EST 2005   [info] Resource Loader Instantiated:
#velocity logs
Any ideas for this noob? :-)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message