@Override protected EdgeDriverService createDriverService(File exe, int port, ImmutableList<String> args, ImmutableMap<String, String> environment) { try { EdgeDriverService service = new EdgeDriverService(exe, port, args, environment); if (getLogFile() != null) { service.sendOutputTo(new FileOutputStream(getLogFile())); } else { String logFile = System.getProperty(EDGE_DRIVER_LOG_PROPERTY); if (logFile != null) { service.sendOutputTo(new FileOutputStream(logFile)); } } return service; } catch (IOException e) { throw new WebDriverException(e); } } }