您的位置:首页 > 移动开发

在学习zookeeper时候遇见了log4j错误No appenders could be found for logger

2017-03-12 17:17 627 查看
log4j:WARN No appenders could be found for logger (org.apache.zookeeper.ZooKeeper).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

WatchedEvent state:SyncConnected type:None path:null
BUILD SUCCESSFUL (total time: 1 minute 0 seconds)


解决方法是把log3j.properties文件粘贴在项目src目录下,一定要在src目录下,否则会出现同样的错误,下面是配置好后的控制台日志信息

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  log4j zookeeper
相关文章推荐