Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there any way to avoid servlet.log being deleted on restart of tomcat?

avoid deleted Tomcat
0
Posted

Is there any way to avoid servlet.log being deleted on restart of tomcat?

0

Location: http://www.jguru.com/faq/view.jsp?EID=455369 Created: Jul 16, 2001 Author: JIA Java Italian Association (http://www.jguru.com/guru/viewbio.jsp?EID=414973) Question originally posed by Dermot O’Loughlin (http://www.jguru.com/guru/viewbio.jsp?EID=428182 No, unfortunately I’ve never seen anything to avoid that problem. I have my own tomcat.sh that before a start or a restart renames the 3 log files (tomcat.log, jasper.log and servlet.log) with the timestamp as extension, so I have the full history. I’m not happy with this solution, though, but it works.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123