log4j:WARN No appenders could be found for logger
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了log4j:WARN No appenders could be found for logger相关的知识,希望对你有一定的参考价值。
log4j:WARN No appenders could be found for logger
log4j:WARN Please initialize the log4j system properly.
如果启动时候报如上警告,有两种办法:
1. 检查log4j.properties or log4j.xml是否被load成功了(加载机制见源码:org.apache.log4j.LogManager.class);
2. 检查log4j.properties中有没有定义相应的logger
以上是关于log4j:WARN No appenders could be found for logger的主要内容,如果未能解决你的问题,请参考以下文章
解决log4j:WARN No appenders could be found for logger
log4j:WARN No appenders could be found for logger错误
log4j:WARN No appenders could be found for logger
关于控制台输出 警告 log4j:WARN No appenders could be found for logger