如何停止Tomcat日志记录? [英] How to stop Tomcat logging?
本文介绍了如何停止Tomcat日志记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Tomcat自动进行日志记录,并且日志文件都在/logs
目录下.据我所知,日志记录属性是/conf/logging.properties
.如何停止所有日志记录?
Tomcat automatically does its logging, and the logging files are all under /logs
directory. As far as I know, the logging property is /conf/logging.properties
. How can I stop all the logging?
推荐答案
要停止访问日志(默认的tomcat设置),请访问:
To stop access log (default tomcat setting) go to:
conf/server.xml
并删除以下配置:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
要禁用通用日志,请转到:
to disable common log, go to:
conf/logging.properties
并注释以下行
handlers = 1catalina.org.apache.juli.FileHandler, .....
这篇关于如何停止Tomcat日志记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文