Logback Learning Materials

Source: Internet
Author: User

Specific Tutorial reference: http://www.blogjava.net/justfly/archive/2014/08/10/416768.html

Http://www.blogjava.net/justfly/archive/2014/08/13/416925.html

Http://www.blogjava.net/justfly/archive/2014/09/17/418034.html

      

      

A problem occurred:

slf4j:failed to load Class "Org.slf4j.impl.StaticLoggerBinder".
Slf4j:defaulting to No-operation (NOP) Logger implementation
Slf4j:see Http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

The cause of the problem is the inability to find org.slf4j.impl.StaticLoggerBinder, the official answer Http://www.slf4j.org/codes.html#StaticLoggerBinder:

This error was reported when the org.slf4j.impl.StaticLoggerBinder class could wasn't being loaded into memory. This happens when no appropriate slf4j binding could is found on the class path. Placing one (and only one) of Slf4j-nop.jar, slf4j-simple.jar,Slf4j-log4j12.jar, Slf4j-jdk14.jar or Logback-classic.jar on the class path should solve the problem .

You can download slf4j bindings from the Project download page.

The main idea is that it org.slf4j.impl.StaticLoggerBinder cannot be loaded into memory because it does not find a suitable binding slf4j and needs to add one of the listed packages.

Here's how to fix it:

Download Slf4j-nop.jar, add to path, solve the problem

Workaround:

Import slf4j-nop.jar, slf4j-simple.jar,slf4j-log4j12.jar , Slf4j-jdk14.jar or logback-classic.jar any one.

MAVEN relies on the notation:

<Dependency>
<GroupId>org.slf4j</groupId>
<artifactid>slf4j-simple</artifactid>
<version>1.7.6</version>
</Dependency>

Logback Learning materials

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.