Tomcat Linux does not log the error troubleshooting

Source: Internet
Author: User
Tags log4j

After the investigation, it is found that the log component inside the project is Logback, and slf4j is an implementation way. The valid logs are shown below.

Log4j:warn No Appenders could is found for logger (org.springframework.web.context.ContextLoader). Log4j:warn Initialize the log4j system Properly.log4j:WARN see http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info . Slf4j:class path contains multiple slf4j bindings. Slf4j:found Binding in [jar:file:/home/app/tomcat_m/webapps/root/web-inf/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/ Impl/staticloggerbinder.class]slf4j:found Binding in [jar:file:/home/app/tomcat_m/webapps/root/web-inf/lib/ Logback-classic-1.1.1.jar!/org/slf4j/impl/staticloggerbinder.class]

So, the effective information comes out ah, an excuse corresponds to a number of implementations, the solution so easy, delete the extra jar package.

Slf4j-log4j12-1.6.1.jar


Tomcat Linux does not log the error troubleshooting

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.