Is it possible to change the logging.properties file without stopping Tomcat

巧了我就是萌 提交于 2019-12-22 00:24:11

问题


I'd like to change the $CATALINA/conf/logging.properties file without stopping Tomcat 7 or any web application.

The need is for exemple to change the level of detection, or to add a Handler on a suspect class.

Is it also possible to do the same with $CATALINA_BASE/webapps/[myApp]/WEB-INF/classes/logging.properties file ?


回答1:


If you set the reloadable attribute of Tomcat's Context element to false, the server will not require restart when it finds configuration changes while running.



来源:https://stackoverflow.com/questions/17130820/is-it-possible-to-change-the-logging-properties-file-without-stopping-tomcat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!