Redirect Tomcat 7 console log output to a file (Windows)

前端 未结 2 661
独厮守ぢ
独厮守ぢ 2020-12-23 22:20

How do I redirect Tomcat 7 console log output to a file on Windows?

2条回答
  •  悲&欢浪女
    2020-12-23 22:30

    Using catalina.bat run can start the tomcat in the current console instead of a new console , so you can redirect all the standard error and standard output stream of this command to a file using

    catalina.bat run > tomcat.log 2>&1
    

提交回复
热议问题