Where is the correct location to put Log4j.properties in an Eclipse project?

后端 未结 10 1633
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 11:19

Where in my Eclipse project should I add the log4j.properties file so that it will work as intended?

10条回答
  •  隐瞒了意图╮
    2020-11-27 12:06

    you can add it any where you want, when you run your project, configure the classpath and add the location of the log4j.properties files by clicking on: Run->Run Configuration -> [classpath tab] -> click on user Entries -> Advanced -> Select Add Folder -> select the location of your log4j.properties file

    and then -> OK -> run

    and it should get loaded

提交回复
热议问题