Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public static Logger createLogger() {
Logger aLogger = LogManager.getRootLogger();
aLogger.debug("\n" + "Inside createLogger - Logger is being set up. New test setup beginning.");
verificationErrors = new StringBuffer();"Logger has been set up.");
return aLogger;
protected static void createLogFile (FirefoxProfile fp) throws Exception {
File outfile = new File(outfileName);
if (!outfile.exists())
fp.setPreference("webdriver.log.driver", "DEBUG");
fp.setPreference("webdriver.log.file", outfileName);