MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / configureLogger

Method configureLogger

java/src/org/openqa/selenium/internal/Debug.java:123–134  ·  view source on GitHub ↗

Shows Selenium's diagnostic log records on the console if debugging is enabled. The switches are read on every call. Once one of them has been seen, debug logging stays on for the life of the JVM, even if the switch is turned off again later. While debugging is on, each call makes sure that: <u

()

Source from the content-addressed store, hash-verified

121 * }</pre>
122 */
123 public static void configureLogger() {
124 synchronized (LOCK) {
125 Level requested = requestedLevel();
126 if (requested != null
127 && (enabledLevel == null || requested.intValue() < enabledLevel.intValue())) {
128 enabledLevel = requested;
129 }
130 if (enabledLevel != null) {
131 enable(enabledLevel);
132 }
133 }
134 }
135
136 /** Returns the level asked for by the debug switches, or {@code null} when none is enabled. */
137 private static @Nullable Level requestedLevel() {

Calls 2

requestedLevelMethod · 0.95
enableMethod · 0.95