Search code examples
tomcattomcat7

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


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


Solution

  • 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