|
17 | 17 |
|
18 | 18 | package org.openqa.selenium.grid.log; |
19 | 19 |
|
| 20 | +import static org.openqa.selenium.grid.config.StandardGridRoles.ALL_ROLES; |
| 21 | +import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_CONFIGURE_LOGGING; |
| 22 | +import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_HTTP_LOGS; |
| 23 | +import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_LOG_LEVEL; |
| 24 | +import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_PLAIN_LOGS; |
| 25 | +import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_STRUCTURED_LOGS; |
| 26 | +import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_TRACING_ENABLED; |
| 27 | +import static org.openqa.selenium.grid.log.LoggingOptions.LOGGING_SECTION; |
| 28 | + |
20 | 29 | import com.google.auto.service.AutoService; |
21 | 30 |
|
22 | 31 | import com.beust.jcommander.Parameter; |
|
27 | 36 |
|
28 | 37 | import java.util.Set; |
29 | 38 |
|
30 | | -import static org.openqa.selenium.grid.config.StandardGridRoles.ALL_ROLES; |
31 | | -import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_CONFIGURE_LOGGING; |
32 | | -import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_HTTP_LOGS; |
33 | | -import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_LOG_LEVEL; |
34 | | -import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_PLAIN_LOGS; |
35 | | -import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_STRUCTURED_LOGS; |
36 | | -import static org.openqa.selenium.grid.log.LoggingOptions.DEFAULT_TRACING_ENABLED; |
37 | | -import static org.openqa.selenium.grid.log.LoggingOptions.LOGGING_SECTION; |
38 | | - |
39 | 39 | @SuppressWarnings("FieldMayBeFinal") |
40 | 40 | @AutoService(HasRoles.class) |
41 | 41 | public class LoggingFlags implements HasRoles { |
@@ -65,10 +65,10 @@ public class LoggingFlags implements HasRoles { |
65 | 65 | private Boolean httpLogs = DEFAULT_HTTP_LOGS; |
66 | 66 |
|
67 | 67 | @Parameter(description = "File to write out logs. " |
68 | | - + "Ensure the file path is compatible with the operating system's file path.\n" |
69 | | - + "# Windows path example : \\\\path\\to\\file\\gridlog.log OR " |
70 | | - + "C:\\path\\path\\to\\file\\gridlog.log \n" |
71 | | - + "# Linux/Unix/MacOS path example : /path/to/file/gridlog.log \n" |
| 68 | + + "Ensure the file path is compatible with the operating system's file path. " |
| 69 | + + "Windows path example: \\\\path\\to\\file\\gridlog.log OR " |
| 70 | + + "C:\\path\\path\\to\\file\\gridlog.log " |
| 71 | + + "Linux/Unix/MacOS path example: /path/to/file/gridlog.log" |
72 | 72 | , names = "--log", arity = 1) |
73 | 73 | @ConfigValue(section = LOGGING_SECTION, name = "log-file", example = {"'\\\\path\\to\\file\\gridlog.log'", |
74 | 74 | "'C:\\path\\path\\to\\file\\gridlog.log'", |
|
0 commit comments