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