jnativehook icon indicating copy to clipboard operation
jnativehook copied to clipboard

Getting mouse debug inside eclipse console

Open stccorp opened this issue 7 years ago • 4 comments

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)

stccorp avatar Sep 02 '18 21:09 stccorp

No solution yet?

dimitris23bp avatar Nov 29 '18 21:11 dimitris23bp

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

kwhat avatar Nov 29 '18 21:11 kwhat

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.

xeruf avatar Jan 08 '19 09:01 xeruf

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.

kwhat avatar May 09 '19 22:05 kwhat