RE: Unable to write to a log file using Log4j

Hello All,

I am unable to write to a log file using Log4j jars. I imported all log4j jars onto the project. When i execute my script, i got the following exception.

Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/Logger

kaarthiiik Default Asked on August 14, 2016 in Selenium WebDriver.
Add Comment
4 Answers

hi guys,

Seems I have a similar problems with this log4j. When I run the script it does create a logfile.log but that log is empty.
Is there any problem with that??

Default Answered on February 3, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.