Closed GoogleCodeExporter closed 9 years ago
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
Original issue reported on code.google.com by
funysi...@gmail.com
on 3 Apr 2014 at 3:01