Gets the logger level value. @return the current level value
()
| 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. |
nothing calls this directly
no test coverage detected