The Eclipse console displays the Tomcat log

Source: Internet
Author: User
Tags tomcat server

Today, read a study of Struts blog, the article mentions from the generated log, the results, how to tinker can not see. The mood also followed irritability. Then go out for a walk after supper, calm down and decide to fix the problem at night. No, it's done, write a blog post.

STRUTS2 Quick Start: http://www.yiibai.com/struts2/struts_quick_guide.html

My development tools are Eclipse-jee-luna-sr2-win32 and apache-tomcat-8.0.15-windows-x86.

Workaround: use Eclipse to start the Tomcat server.

The article says that the configuration WEB project inside the/web-inf/classes/logging.properties below can see the log information:

Org.apache.catalina.core.ContainerBase. [Catalina].level = ALLorg.apache.catalina.core.ContainerBase. [catalina].handlers =                               Java.util.logging.ConsoleHandler

The article inside the Interceptor learning part of the instance after the execution will produce log information, the results can not be found everywhere, only Baidu, to find the following this blog post.

Logging Tomcat console output logs: http://gigi-112.iteye.com/blog/618032

There will be three methods, I used the second, a try, sure enough to see the hope of a few 1000 minutes of log information, hooray!

The following prerequisites are required to start the Tomcat server in eclipse:

1. Add Tomcat Runtime environment:window->preferences->server->runtime environment->add ... button,

Select the appropriate tomcat server version->next->browse in the Apache directory ... Select the Tomcat installation directory->finish button.

2. Once the add is complete, you can start the Tomcat server via eclipse: Run as->run on server-> Select the Tomcat Server->finish button to start.

You can then see the log information for Tomcat running in the Eclipse console.

The problem is solved, thank two Bo friends!

The Eclipse console displays the Tomcat log

Related Article

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.