velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barbara Baughman <>
Subject RE: Configuring runtime.log for production use
Date Fri, 04 Oct 2002 18:11:25 GMT
May I suggest using Log4j for the velocity log?  Velocity uses a rolling
file log type in log4j, so it will write to a log file until it reaches
a certain size, then create a new file.  When the new file gets to a
certain size, it overwrites the backup with the current file and creates
another new file.  That way you can limit the amount of space used by the
Velocity log, but still have the most recent messages for debugging.

See the Developer's Guide for information about setting up log4j as the
velocity logging system.  These are the lines in that
I use to keep the file size to 10K and keep one backup file.


Barbara Baughman

On Fri, 4 Oct 2002, Curt Larock wrote:

> You can turn off the log entirely by changing the logsystem
> in your Velocity configuration like this:
> runtime.log.logsystem.class = org.apache.velocity.runtime.log.NullLogSystem
> -----Original Message-----
> From: []
> Sent: Friday, October 04, 2002 1:30 PM
> To:
> Subject: Configuring runtime.log for production use
> I have some questions about the Velocity's runtime log file.
> The first is simple, is there a way to turn it off?  Something like 
> this:
> setProperty("runtime.log", null);
> setProperty("runtime.log", "");
> If not, can I minimize the amount of stuff written to the log?
> I'm switching from a testing type environment to a production
> type environment.  Velocity will be used by a TTY application,
> so errors will be obvious to the user immeadiately.  On the 
> other hand, I'm worried about the log file growing and growing
> off in a corner somewhere (or leaving little 'velocity.log' turds
> all over the file system).  I looked at the on line docs, but
> didn't see the answer to this exact question.
> Joshua
> --
> To unsubscribe, e-mail:
> <>
> For additional commands, e-mail:
> <>

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

View raw message