mercredi 5 août 2015

Dynamically change Logback level for web app running on tomcat


I have a logback.xml in the resources folder of my java web application which is running on Tomcat 7. Is there a way to change the debug level of some class of the application dynamically as the application is running?

The standard thing to do it is a normal java jar running from the CLI is to just edit logback.xml with say vim and after a while the log is updated. Is this possible with tomcat as I tried it and id does not seem to work.

Is there any better way?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire