Create a gist now

Instantly share code, notes, and snippets.

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();
aLogger.info("Logger has been set up.");
return aLogger;
}
protected static void createLogFile (FirefoxProfile fp) throws Exception {
File outfile = new File(outfileName);
if (!outfile.exists())
outfile.createNewFile();
fp.setPreference("webdriver.log.driver", "DEBUG");
fp.setPreference("webdriver.log.file", outfileName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment