kwhat / jnativehook

Global keyboard and mouse listeners for Java.
Other
1.73k stars 344 forks source link

Getting mouse debug inside eclipse console #238

Open stccorp opened 6 years ago

stccorp commented 6 years ago

I am trying to test the keyboard handling. Using your demo I get a bunch of mouse movements on the console(Inside Eclipse). But I never told the library to do that. Not sure where to remove that output. I am only implementing NativeKeyListener. i am using JNativeHook v2.1.0

Thank you

Sep 02, 2018 5:34:56 PM org.jnativehook.GlobalScreen$NativeHookThread enable INFO: process_mouse_moved [459]: Mouse moved to 1568, 526.

Sep 02, 2018 5:34:56 PM org.jnativehook.GlobalScreen$NativeHookThread enable INFO: hook_get_multi_click_time [208]: GetDoubleClickTime: 500.

Sep 02, 2018 5:34:56 PM org.jnativehook.GlobalScreen$NativeHookThread enable INFO: process_mouse_moved [459]: Mouse moved to 1567, 527.

Sep 02, 2018 5:34:56 PM org.jnativehook.GlobalScreen$NativeHookThread enable INFO: process_button_pressed [367]: Button 1 pressed 1 time(s). (1567, 527)

Sep 02, 2018 5:34:56 PM org.jnativehook.GlobalScreen$NativeHookThread enable INFO: process_button_released [389]: Button 1 released 1 time(s). (1567, 527)

dimitris23bp commented 5 years ago

No solution yet?

kwhat commented 5 years ago

Please refer to the Logging and Console Output section of the wiki.

xeruf commented 5 years ago

The default loglevel should be WARNING, normal users of the library do not want to get spammed to death in the console. Every applications using jnativehook now has this bit of code to disable the logging, this is bonkers. Have you considered slf4j? Furthermore, the native event logs should not be at INFO but at TRACE level, because they are extremely fine-grained.

kwhat commented 5 years ago

The default log level is set to the Java default log level, which is INFO. We can possibly change the level of these events to trace if that would be helpful.