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?
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?
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...