We are done with basic introduction to log4j, now lets make our setup ready to work with log4j in selenium.
Download Log4j:-
Step1:-
Open the link:-
Note:- we have used the older version of log4j1.2x in our example code,
New version of http://logging.apache.org/log4j/2.x/download.html is also available.
Step2:-
Click on the below link
Download Log4j:-
Step1:-
Open the link:-
Note:- we have used the older version of log4j1.2x in our example code,
New version of http://logging.apache.org/log4j/2.x/download.html is also available.
Step2:-
Click on the below link
![]() |
log4j zip file link |
Step3:-
Click on the Apache Download Mirrors link
![]() |
log4j download link |
Step4:-
Save and Extract the file
![]() |
Downloading the log4j jar file |
![]() |
log4j jar file after extraction |
Step5:-
Include the Jar file in project and we are done
How to add Jar to project.
![]() |
Adding log4j jar files to Java project |