Test Diary

Archives


Social Profile


Recent Comments


Log 4j: log4j:WARN No appenders could be found for logger

Olufemi Ade-OlusileOlufemi Ade-Olusile

log4j:WARN No appenders could be found for logger

One error most testers working with Log 4j face, is theLog 4j: log4j:WARN No appenders could be found for loggererror

This error looks like this most times.

If you have correctly installed your Log4j.properties file with the right Appenders, Loggers and Layouts, one solution to solve this error will be to add your Log4j.properties file to the Classpath of the Test class you are running in Eclipse.

Steps to solve this:

  1. Click on the class which gave you the error.
  2. Click on “Run” on the top menu and click on “Run configurations” from the dropdown.
  3. Click on “Classpath”.
  4. Click on User “Entries”.
  5. Click on the “Advanced” button.
  6. A pop up appears select “Add Folders” and click the “OK” button.
  7. Locate and Select the folder which holds your log4j.properties file.
  8. Click on “Apply” then click “Run”.

This should solve your problem.

Happy Testing

“My name is Olufemi Ade-Olusile, and I am a Software Developer in Test. I am the owner of "Test diary" which is aimed at inspiring and teaching software testers.