1. bin/startup.bat

Windows Tomcat 日志输出到 catlina.out 按日期输出_Windows Tomcat

注释掉call "%EXECUTABLE%" start %CMD_LINE_ARGS%

添加  call "%EXECUTABLE%" run %CMD_LINE_ARGS%

 

 

2.bin/catalina.bat

Windows Tomcat 日志输出到 catlina.out 按日期输出_Windows Tomcat_02

 

四个 %ACTION% 后边都加上>> %CATALINA_HOME%\logs\catalina.%date:~0,4%-%date:~5,2%-%date:~8,2%.out