Core DataDriver framework log4j issue | Selenium Forum
M
Posted on 05/07/2016
When I try to declare logger variable in my TestBase class I am getting below error

public static Logger APPLICATION_LOGS = Logger.getLogger("devpinoyLogger");

error message = The method getLogger(Class) in the type Logger is not applicable for the arguments (String)

Please find attached error screenshot

Can you guide me how to solve this issue.

Thanks,
Sumanta

M
Replied on 06/07/2016

you're importing wrong logger.

import log4j logger.


M
Replied on 06/07/2016

Thanks. I have imported correct logger but did not work . However I have used like below and started working.

public static org.apache.log4j.Logger APPLICATION_LOG= org.apache.log4j.Logger.getLogger("devpinoyLogger");


M
Replied on 09/07/2016

I got the issue and I was importing wrong log4j. Thanks Ashish