Tomcat configuration log output in Windows environment

Source: Internet
Author: User

In a Linux system, the Tail-f catalina.out can be used to track the operation of Tomcat and related applications. Under Windows, Catalina logs are very different from the contents of a Linux record, and most of the information is output to the screen and not to the catalina.out.

Output the console information to "\%ctalina_base%\logs\catalina.out":
1. Open the Startup.bat file below the bin and call "%executable%" Start%cmd_line_args%
Change to call "%executable%" Run%cmd_line_args%.
2, open the bin under the Catalina.bat file, you will find a total of 4 "%ation%", in the following respectively add
">>\%ctalina_home%\logs\catalina.out".
Restart Tomcat, you will find in the Logs folder under the Catalina.out file, the original console information is all written in.
But the output of this catalina.out file, is always growing, that is, the file will grow larger.

Tomcat configuration log output in Windows environment

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.