suraj0208/jnativehook

JNativeHook 1.2.0-Beta1 jar print unnecessary unwanted text in console

Closed this issue · 2 comments

Hi

 I am making an application which capture every Keystroke press in Linux system and I had used the JNativeHook 1.2.0-Beta1 jar from the github.com and it is working but it display or print unnecessary unwanted text in console and I don't need for my application like mouse pointer location etc .

Can you please provide me JNativeHook 1.2.0-Beta1 jar without printing text in 
cosole which is stable in Ubuntu Linux system and I am new in Linux system and 
I don't know how to make build your source code.

Please forgive for my bad english.

Thanks

Original issue reported on code.google.com by funysi...@gmail.com on 3 Apr 2014 at 3:01

Hi,

In version 1.2, logging can be adjusted through Java's logger.  See 
https://github.com/kwhat/jnativehook/blob/master/src/java/org/jnativehook/exampl
e/NativeHookDemo.java#L180

// Gets the JNativeHook logger
logger = Logger.getLogger(GlobalScreen.class.getPackage().getName());

// Remove all previous and default configuration
LogManager.getLogManager().reset();

// Set to the log level you desire.  I recommend using WARNING for a quite 
console.  Only errors and warnings will be displayed.  Fine is the lowest level 
used for debugging. 
logger.setLevel(Level.WARNING);

You can also change the format of the log files as illustrated near line 186 in 
the example.

This bug is technically invalid, however, I will leave it here until I create 
some documentation about this feature.

Original comment by a...@1stleg.com on 3 Apr 2014 at 4:53

Original comment by a...@1stleg.com on 17 Apr 2014 at 6:11

  • Changed state: Fixed