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

Srinivas Reddy picture Srinivas Reddy · Feb 22, 2011 · Viewed 185.7k times · Source

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

Answer

Charbel picture Charbel · Feb 22, 2011

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