Windows tomcat log output to the Catalina.out file

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.