velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Holmer <ghol...@weycogroup.com>
Subject logging question
Date Fri, 23 Jun 2006 17:52:47 GMT
We are upgrading our web apps from Tomcat 5.0 to 5.5, and find that we 
now see lots and lots of messages from Velocity in the log4j log file 
that we didn't see before.  How to make them go away, or go somewhere 
else?  Our typical config looks like this:

in web.xml:

  <servlet>
    <servlet-name>velocity</servlet-name>
    <servlet-class>
      org.apache.velocity.tools.view.servlet.VelocityViewServlet
    </servlet-class>
    <init-param>
      <param-name>org.apache.velocity.toolbox</param-name>
      <param-value>/WEB-INF/toolbox.xml</param-value>
    </init-param>
    <init-param>
      <param-name>org.apache.velocity.properties</param-name>
      <param-value>/WEB-INF/velocity.properties</param-value>
    </init-param>
    <load-on-startup>10</load-on-startup>
  </servlet>

in velocity.properties:

# Velocity.properties
velocimacro.library=/WEB-INF/velocity/VM_global_library.vm
velocimacro.permissions.allow.inline=true
velocimacro.permissions.allow.inline.to.replace.global=false
velocimacro.permissions.allow.inline.local.scope=false  
velocimacro.context.localscope=false
# default starting value of the loop counter variable reference.
directive.foreach.counter.initial.value=0

I tried adding this line:

runtime.log=...

but didn't get any output in the specified file.

-- 
____________________________________________________________
Glenn Holmer                          gholmer@weycogroup.com
Software Engineer                        phone: 414-908-1809
Weyco Group, Inc.                          fax: 414-908-1601

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