Module 20 ( Creating Seperate Logs for each Test) | Selenium Forum
M
Posted on 10/06/2016
Video is not uploaded for "Creating Seperate Logs for each Test"i.e log4j while explaining grid

public void initLogs(Class<?> class1){

FileAppender appender = new FileAppender();
// configure the appender here, with file location, etc
appender.setFile(System.getProperty("user.dir")+"//target//reports//"+CustomListener.resultFolderName+"//"+class1.getName()+".log");
appender.setLayout(new PatternLayout("%d %-5p [%c{1}] %m%n"));
appender.setAppend(false);
appender.activateOptions();

APPLICATION_LOG = Logger.getLogger(class1);
APPLICATION_LOG.setLevel(Level.DEBUG);
APPLICATION_LOG.addAppender(appender);
}

It is difficult to inderstand the code , please add the video for this, it will be very helpful

M
Replied on 14/06/2016

what do you want to understand?