Reputation: 2243
I need to clear all my logs when I undeploy an application in Tomcat. I don't want to clear the logs every time manually.
How can I achieve this?
Upvotes: 0
Views: 514
Reputation: 5494
I don't think you will find any solution inside Tomcat.
You can either :
My preference would be the shell script, since it is really easy to write, to call and, if you need it, you can undeploy without clearing the log...
Upvotes: 3