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