Exception thrown while using logback/slf4j

前端 未结 8 646
忘了有多久
忘了有多久 2020-12-09 16:46

I am using slf4j 1.6.2 api jar (tried using 1.6.1 as well) - logback version is 0.9.29 (core & classic). I am using jdk1.6 on ubuntu. The exception I received is copied

8条回答
  •  心在旅途
    2020-12-09 17:44

    We have to align the versions of slf4j-api and the corresponding binding, in my case I was using slf4j-log4j12, acording with the documentation of SLF4J:

    http://www.slf4j.org/codes.html#version_mismatch

    I replace the versions of both libraries included as transitive dependencies, putting in my pom this:

        
            org.slf4j
            slf4j-api
            1.7.1
        
    
        
            org.slf4j
            slf4j-log4j12
            1.7.1
        
    

    I hope this help to somebody.

    Kind regards,

    Jaider

提交回复
热议问题