Hi Support team,
I think it is still not ok, coz the application.log file is not being generated. Please look into the issue again.
Regards
Guru
correct the path
D[color=#FF0000:1uiprdvl]\:\\[/color:1uiprdvl]Selenium Udemy\\Selenium\\Application.log
Hi Support TEam ,
There is no difference between the path you have mentioned and the pasth that I have used in the code, please recheck
Regards
Guru
Hi Support team ,
it works now, but the problem is that all the log messages are appearing twice as shown below.
Log:
06/02/2016 23:14:15 devpinoyLogger started using Application Logginng - NEW TEST
06/02/2016 23:14:15 devpinoyLogger started using Application Logginng - NEW TEST
06/02/2016 23:14:15 devpinoyLogger Finished using Application Logginng - NEW TEST
06/02/2016 23:14:15 devpinoyLogger Finished using Application Logginng - NEW TEST
Code:
package LearningTestNG;
import org.apache.log4j.Logger;
import org.testng.annotations.Test;
public class testlog4j {
public static Logger APPLICATION_LOG = Logger.getLogger("devpinoyLogger");
@Test
public void Test4j(){
APPLICATION_LOG.debug("started using Application Logginng - NEW TEST");
System.out.println("Guru");
APPLICATION_LOG.debug("Finished using Application Logginng - NEW TEST");
}
}