log4j2配置

在eclipse使用log4j2的时候遇到个问题:

我已经把log4j2.xml放到/src目录下了,而且设置从trace开始都打印到终端,但是我的程序里trace, info都不打印,到了error才打印

后来我发现,要选中eclipse的项目,右键--刷新,使得能在eclipse里看到log4j2.xml

You could also see my answer here:

http://stackoverflow.com/questions/14733698/log4j-2-configuration-issue/19875543#19875543 

原文地址:https://www.cnblogs.com/fstang/p/3416005.html