Problem
The logs for Tomcat under Windows are only output under the console, and the log file output has only some basic information. How to output all the logs to catalina.out, but one drawback is that the log is not output at the command line.
Solution Solutions
There are two places to change:
1, modify the Startup.bat
Change call "%executable%" Start%cmd_line_args% to "%executable%" run%cmd_line_args%.
2, modify the Catalina.bat
Find Catalina.bat containing 4 lines of%action% (at the end of the file), add >>%catalina_home%\logs\catalina.out or >>%catalina_base%\ Logs\catalina.out after modification as (not shown fully):
650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m01/86/a8/wkiol1fgm9malagoaadhyed_ikq289.png "border=" 0 "height=" 194 "/>
after rebooting Tomcat, it is found that a catalina.out file is generated under the logs file with the contents of the Tomcat log.
This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://pizibaidu.blog.51cto.com/1361909/1844834
Windows tomcat log output to the Catalina.out file