We have a tomcat project which runs on windows.
And we are planing to upgrade tomcat version to 7.
In our development environment, after upgrade to tomcat7,
we found the log file name was changed from
stdout_yyyymmdd.log to <productname>-stdout.yyyy-mm-dd.log.
What should we do to keep the current log file name?
The stdout from Tomcat is actually traditionally written to TOMCAT_HOME/logs/catalina.out. But because it is stdout, even that is only because the script that launches Tomcat has a redirection on the "java" command line.
You should be able to alter that script any way you like (as long as you understand what you are doing!)
My guess as to why the name change is that it probably makes it easier to run multiple copies of Tomcat, where each logfile's name corresponds to the name of the Tomcat that is writing it.
An IDE is no substitute for an Intelligent Developer.
Joined: Dec 27, 2011
Thank you Tom.
I'm afraid I haven't understood what you meant.
Do you mean I can change file name using java command?
If yes, could you kindly tell me the command what I should use?