Srinivas Reddy Srinivas Reddy - 3 days ago 5
Java Question

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

Where in my Eclipse project should I add the

log4j.properties
file so that it will work as intended?

Answer

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

Comments