Log4j2 configuration - No log4j2 configuration file found

前端 未结 6 625
说谎
说谎 2020-12-07 14:19

Lately I decided to learn how to use the log4j2 logger. I downloaded required jar files, created library, xml comfiguration file and tried to use it. Unfortunately i get thi

6条回答
  •  星月不相逢
    2020-12-07 15:01

    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

提交回复
热议问题