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

Method setLogging

src/test/Test_Event.java:73–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 private static boolean allowEventInfo = true;
72
73 private void setLogging() {
74 if ((/** @j2sNative false && */
75 allowLogging)) {
76
77 Logger rootLogger = Logger.getLogger("");
78 rootLogger.setLevel(Level.ALL);
79 logClass("java.awt.EventDispatchThread");
80 logClass("java.awt.EventQueue");
81 logClass("java.awt.Component");
82 logClass("java.awt.focus.Component");
83 logClass("java.awt.focus.DefaultKeyboardFocusManager");
84
85 }
86
87 }
88
89 public static void main(String[] args) {
90 KeyboardFocusManager.setCurrentKeyboardFocusManager(new DefaultKeyboardFocusManager() {

Callers 1

Test_EventMethod · 0.95

Calls 3

logClassMethod · 0.95
getLoggerMethod · 0.80
setLevelMethod · 0.45

Tested by

no test coverage detected