WebLogic Configuration finally nice and clean Since Mike Spile is so brave: I am a Perlaphobia too
Mar 05

Cleaning up those velocity.log files

Tech Add comments

Are you using velocity and ignore the log files that it produces? They seem to grow pretty darn quickly.

I recently added the following code to setup velocity before it is used:

Velocity.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, insert default directory for your templates);
Velocity.setProperty(RuntimeConstants.RUNTIME_LOG, insert the location of the log);
Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
DEBUG ? “org.apache.velocity.runtime.log.SimpleLog4JLogSystem”
: “org.apache.velocity.runtime.log.NullLogSystem“);

Now unless in debug mode the logs aren’t in the way.

2 Responses to “Cleaning up those velocity.log files”

  1. samsung Says:

    Hi! cool blog. thx.

  2. wholesale replica handbags Says:

    thanks for your sharing.

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'cricket'