启动tomcat7出现错误 :ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
说是log4j-core路径问题,我也不知道怎么搞了,jar包我也确实导入了 求大神指点
...全文
14932打赏收藏
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add lo
启动tomcat7出现错误 :ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console... 说是log4j-core路径问题,我也不知道怎么搞了,jar包我也确实导入了 求大神指点
Solved the error message by setting the system property for log4j2 configuration file. below is the below code.
System.setProperty("log4j.configurationFile","./path_to_the_log4j2_config_file/log4j2.xml");
Logger log = LogManager.getLogger(LogExample.class.getName());
参考
https://stackoverflow.com/questions/47881821/error-statuslogger-log4j2-could-not-find-a-logging-implementation
我也是,同求.已经在WEB-INF/lib下引入了log4j-core-2.11.0.jar;依然报错:ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console