Toggle navigation
Home
(current)
Selenium Training
Course Details
Free Videos
Support Forum
QTP UFT Training
Course Details
Free Videos
Support Forum
Appium Training
Course Details
Free Videos
Support Forum
Contact Us
(current)
All Courses
(current)
Login
(current)
Avail Discount
Name
Email
Phone Number
Tools
Selenium
QTP/UFT
Appium
Enroll Now
Home
Forum
Selenium Forum
Module 20 ( Creating Seperate Logs for each Test)
Module 20 ( Creating Seperate Logs for each Test)
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?