Tomcat6,使用了 velocity。
在console中有大量的debug信息输出,怎样才能关闭呢?输出的信息:INFO:  Velocity  [debug] Left side ($xx) of '!=' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. inc/nav.vm[line 61, column 51]
Nov 17, 2009 2:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] Left side ($xx) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. inc/nav.vm[line 65, column 29]
Nov 17, 2009 2:34:01 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] Left side ($xx) of '==' operation has null value. If it is a reference, it may not be in the context or its toString() returned null. inc/nav.vm[line 69, column 30]
Nov 17, 2009 2:34:02 PM org.apache.catalina.core.ApplicationContext log
INFO:  Velocity  [debug] ResourceManager : found inc/footer.vm with loader org.apache.velocity.tools.view.WebappResourceLoader

解决方案 »

  1.   

    你用的log4j吧,把配置文件中的log输出级别 设置到error就可以了,相关文档g一把
      

  2.   

    是这样么?log4j.logger.org.apache.velocity=ERROR我试了 无效啊
      

  3.   

    velocity配置文件中配置下这个
    runtime.log.logsystem.class=org.apache.velocity.runtime.log.Log4JLogChute这样输出就应该和log4j中的设置一样了
      

  4.   

    Thanks, sang..
    就是这个哈哈。
      

  5.   

    velocity配置文件中配置下这个
    runtime.log.logsystem.class=org.apache.velocity.runtime.log.Log4JLogChute这样输出就应该和log4j中的设置一样了
    velocity的配置文件在哪?