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

Method configureLogger

java/src/org/openqa/selenium/internal/Debug.java:136–147  ·  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

134 * }</pre>
135 */
136 public static void configureLogger() {
137 synchronized (LOCK) {
138 Level requested = requestedLevel();
139 if (requested != null
140 && (enabledLevel == null || requested.intValue() < enabledLevel.intValue())) {
141 enabledLevel = requested;
142 }
143 if (enabledLevel != null) {
144 enable(enabledLevel);
145 }
146 }
147 }
148
149 /** Returns the level asked for by the debug switches, or {@code null} when none is enabled. */
150 private static @Nullable Level requestedLevel() {

Calls 2

requestedLevelMethod · 0.95
enableMethod · 0.95