slf4j & log4j2 maven setup query

后端 未结 4 1731
梦谈多话
梦谈多话 2020-12-30 22:35

I am using log4j2 and slf4j in my project & using maven for the build. I am using the following pom file (releveant dependencies shown only) but I am getting the error

4条回答
  •  误落风尘
    2020-12-30 23:09

    I think your first pom.xml is correct, (dependency is correct), maybe config file location is wrong

    pom.xml

          
            org.slf4j
            slf4j-api
            1.7.25
        
        
            org.apache.logging.log4j
            log4j-api
            2.7
        
        
            org.apache.logging.log4j
            log4j-core
            2.7
        
    

提交回复
热议问题