如何关闭 tomcat5 'session expire' 日志消息? [英] how to turn off tomcat5 'session expire' log messages?
本文介绍了如何关闭 tomcat5 'session expire' 日志消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直试图关闭这些过多的日志消息,但没有成功.
I've been trying to turn off these excessive log messages without success.
INFO | jvm 1 | 2010/08/19 14:36:30 | DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (ManagerBase.java:677) - Start expire sessions StandardManager at 1282242990088 sessioncount 0
INFO | jvm 1 | 2010/08/19 14:36:30 | DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (ManagerBase.java:685) - End expire sessions StandardManager processingTime 0 expired sessions: 0
我将以下行添加到我的应用程序的 WEB-INF/logging.properties 文件中.
I added the following line to my app's WEB-INF/logging.properties file.
org.apache.catalina.session.ManagerBase.level=WARNING
这样对吗?还有其他地方需要我把它放吗?
Is this right? Is there somewhere else that I need to put it?
推荐答案
在Tomcat/conf/logging.properties
下试试以下:
org.apache.catalina.session.ManagerBase.level = INFO
并且如上所述,验证这不会在您的自定义 log4j.properties
文件中被覆盖.
And as mentioned, verify that this is not being overwritten in your custom log4j.properties
file.
这对我们的团队使用了 Tomcat v6.37 和 log4j1.2.13.jar.
This has worked for our team with Tomcat v6.37 and log4j1.2.13.jar.
这篇关于如何关闭 tomcat5 'session expire' 日志消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文