ERROR StatusLogger Log4j2 could not find a logging implementation. Please add lo

培旭瞬间 2017-10-17 12:03:21
启动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包我也确实导入了 求大神指点
...全文
1493 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
stacksoverflow 2018-06-15
  • 打赏
  • 举报
回复
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
小皮de梦想 2018-06-15
  • 打赏
  • 举报
回复
我也是,同求.已经在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

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧