Module 7: Doubt Regarding Log4j | Selenium Forum
M
Posted on 01/11/2016
As you have shown, for using log4j, we need to create object for logger class. So, do i need to create the object of logger class in each java file. Is it possible to create the object once and should be able to use it in all java class files.


Thanks,
Akshay Karkare

M
Replied on 01/11/2016

create object for logger class in 1 java class and then extend that class to very class in your project.

watch module 20 for more info.