MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getLevelValue

Method getLevelValue

src/org/opensourcephysics/controls/OSPLog.java:346–358  ·  view source on GitHub ↗

Gets the logger level value. @return the current level value

()

Source from the content-addressed store, hash-verified

344 * @return the current level value
345 */
346 public static int getLevelValue() {
347 if (useMessageFrame()) {
348 return org.opensourcephysics.controls.MessageFrame.getLevelValue();
349 }
350 try {
351 Level level = getOSPLog().getLogger().getLevel();
352 if (level != null)
353 return level.intValue();
354 } catch (Exception ex) { // throws security exception if the caller does not have
355 // LoggingPermission("control").
356 }
357 return -1;
358 }
359
360 /**
361 * Sets the logger level.

Callers

nothing calls this directly

Calls 5

useMessageFrameMethod · 0.95
getOSPLogMethod · 0.95
getLoggerMethod · 0.80
intValueMethod · 0.80
getLevelMethod · 0.65

Tested by

no test coverage detected