ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
ms_eye 提问于:2017-07-22
0 0

struts2启动:

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
七月 22, 2017 1:58:31 下午 org.apache.coyote.AbstractProtocol start
  • 所有回答
happy_0812 回答于:2017-07-22
0 0

log4j 2.x需要引入两个jar包,分别是log4j-api.jar和log4j-core.jar。

maven地址如下:


<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-core</artifactId>
    <version>2.8.2</version>
</dependency>
我来回答    ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...