Skip to content

Commit c813596

Browse files
committed
Adding a new selenium server option -logLongForm to log more details to the console. Fixes issue 6645
1 parent 6c14f14 commit c813596

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

java/server/src/org/openqa/grid/selenium/GridLauncher.java

+2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ public static void main(String[] args) throws Exception {
8080
throw new RuntimeException(e);
8181
}
8282
} else {
83+
boolean logLongForm = helper.isParamPresent("-logLongForm");
8384
for (Handler handler : Logger.getLogger("").getHandlers()) {
8485
if (handler instanceof ConsoleHandler) {
8586
handler.setLevel(logLevel);
87+
handler.setFormatter(new TerseFormatter(logLongForm));
8688
}
8789
}
8890
}

java/server/src/org/openqa/selenium/server/cli/RemoteControlLauncher.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ public static void usage(String msg) {
8080
INDENT,
8181
"-trustAllSSLCertificates: Forces the Selenium proxy to trust all SSL certificates. This doesn't work in browsers that don't use the Selenium proxy.");
8282
printWrappedLine(INDENT,
83-
"-log <logFileName>: writes lots of debug information out to a log file");
83+
"-log <logFileName>: writes lots of debug information out to a log file and disables logging to console");
84+
printWrappedLine(INDENT,
85+
"-logLongForm: writes information out to console in long format (for debugging purpose)");
8486
printWrappedLine(
8587
INDENT,
8688
"-htmlSuite <browser> <startURL> <suiteFile> <resultFile>: Run a single HTML Selenese (Selenium Core) suite and then exit immediately, using the specified browser (e.g. \"*firefox\") on the specified URL (e.g. \"http://www.google.com\"). You need to specify the absolute path to the HTML test suite as well as the path to the HTML results file we'll generate.");

0 commit comments

Comments
 (0)