Log4j2 could not find a logging implementation with Spring Boot

后端 未结 4 2105
走了就别回头了
走了就别回头了 2020-12-18 00:02

I\'m getting this error trying to use log4j2 with spring boot.

ERROR StatusLogger Log4j2 could not find a logging implementation. 
Please add log4j-core to t         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 00:17

    I looked up the source code of LogManager.class and found the reason was there's no LoggerContextFactory found in log4j-provider.properties which should be found in log4j-core.jar/META-INF.
    So check your log4j-core.jar/META-INF/log4j-provider.properties file , or you can delete your log4j-core.jar in your local repository.

提交回复
热议问题