+17
-0
lines changedFilter options
+17
-0
lines changed Original file line number Diff line number Diff line change
@@ -50,6 +50,11 @@ public class EdgeDriverService extends DriverService {
50
50
*/
51
51
public static final String EDGE_DRIVER_LOG_PROPERTY = "webdriver.edge.logfile";
52
52
53
+
/**
54
+
* System property that defines the log level when MicrosoftWebDriver output is logged.
55
+
*/
56
+
public static final String EDGE_DRIVER_LOG_LEVEL_PROPERTY = "webdriver.edge.loglevel";
57
+
53
58
/**
54
59
* Boolean system property that defines whether the MicrosoftWebDriver executable should be started
55
60
* with verbose logging.
@@ -114,6 +119,7 @@ public static class Builder extends DriverService.Builder<
114
119
115
120
private final boolean disableBuildCheck = Boolean.getBoolean(EDGE_DRIVER_DISABLE_BUILD_CHECK);
116
121
private boolean verbose = Boolean.getBoolean(EDGE_DRIVER_VERBOSE_LOG_PROPERTY);
122
+
private String loglevel = System.getProperty(EDGE_DRIVER_LOG_LEVEL_PROPERTY);
117
123
private boolean silent = Boolean.getBoolean(EDGE_DRIVER_SILENT_OUTPUT_PROPERTY);
118
124
private String allowedListIps = System.getProperty(EDGE_DRIVER_ALLOWED_IPS_PROPERTY);
119
125
@@ -148,6 +154,14 @@ public EdgeDriverService.Builder withVerbose(boolean verbose) {
148
154
return this;
149
155
}
150
156
157
+
/**
158
+
* Configures the driver server log level.
159
+
*/
160
+
public EdgeDriverService.Builder withLoglevel(String level) {
161
+
this.loglevel = level;
162
+
return this;
163
+
}
164
+
151
165
/**
152
166
* Configures the driver server for silent output.
153
167
*
@@ -199,6 +213,9 @@ protected List<String> createArgs() {
199
213
if (silent) {
200
214
args.add("--silent");
201
215
}
216
+
if (loglevel != null) {
217
+
args.add(String.format("--log-level=%s", loglevel));
218
+
}
202
219
if (allowedListIps != null) {
203
220
args.add(String.format("--whitelisted-ips=%s", allowedListIps));
204
221
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4