velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <>
Subject Re: Velocity Logging
Date Tue, 07 Oct 2008 14:25:15 GMT
On Mon, Oct 6, 2008 at 9:24 PM, Byron Foster <> wrote:
> Hi Mark, It's hard to tell what's going on without knowing more about how
> you are trying to run Velocity,

agreed.  it also helps to know what version you are using.

> but... You can set the log location
> programtically (which might give you some insight as to if your properties
> file is being read):
>"runtime.log", "<thepath>");
> and the properties file is loaded with:
>"<the prop path>");
> If your running with VelocityServlet, you can set the location of the
> velocity properties file with
>    <init-param>
>      <param-name></param-name>
>      <param-value>/WEB-INF/velocity.props</param-value>
>    </init-param>

if you are using the deprecated VelocityServlet, i suggest upgrading
to the VelocityViewServlet (in VelocityTools), which automatically
sends log messages to the servletContext.log() method, so you can find
your logs wherever your servlet engine of choice keeps them.

> On Oct 6, 2008, at 16:48 , Mark Fenbers wrote:
>> Velocity is working, but I seem to have no control over where Velocity
>> writes its log info.  I changed the "runtime.log" entry in the
>> file to be a custom filename, but it still writes to
>> "velocity.log" in the current directory.  It appears that the
>> file is not being read at all.  I put this file in both,
>> the current directory, and in another place I know is in the classpath, but
>> still, the file isn't being read -- or at least, the runtime.log entry
>> within it is being ignored.  I've spent more than 2 hours trying to hunt
>> down info on what I might be doing wrong, but to no avail.  I consider this
>> posting as my last resort.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message