Where to place log4j.xml

前端 未结 6 735
滥情空心
滥情空心 2020-11-30 02:37

How can we specify were log4j has to look at when trying to find its xml configuration file ?

It seems that by default, log4j looks into the root of a class folder,

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 02:46

    Do not worry about where to put it. Just run your project, say in eclipse, log4j will throw an exception, telling you where it was looking. Then you can put it there.

    Once you get it working, you will also figure out how to change that, as you understand the logic.

提交回复
热议问题