在使用log4j2打印log时出现如下提示错误,找不到配置文件。
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
解决方法:原文
Is this a simple eclipse java project without maven etc? In that case you will need to put the log4j2.xml file under src folder in order to be able to find it on the classpath. If you use maven put it under src/main/resources or src/test/resources
网友评论