Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Different log file when the server is restarted

Status
Not open for further replies.

samit700

Programmer
Sep 23, 2003
52
US
Hi,

I was wondering if I could have a different log file whenever the application server (Tomcat) is restarted. Right now whenever the application server is restarted, the log file is over-written and all previous logs are lost. How can I create the log file name similar to ones that Tomcat logs uses. For example like this:
filename = {filename.current-date-and-time}

which will allow me to preserve all log files for different server instantiations.

Also when I am using log4j with Struts, Struts logs so many of its own errors to my log file (i don't know how?), how do I turn that off since its increasing the size of the log exponentially ...

Thanks,
Samit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top