mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-06 16:59:56 +01:00
Disable logging option
This commit is contained in:
parent
771499a7ca
commit
5eb89d4e12
|
|
@ -43,6 +43,7 @@ import java.security.AccessController;
|
|||
import java.security.PrivilegedAction;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
|
|
@ -90,6 +91,11 @@ public abstract class ControllerEnvironment {
|
|||
* Protected constructor for subclassing.
|
||||
*/
|
||||
protected ControllerEnvironment() {
|
||||
if(System.getProperty("jinput.loglevel") != null) {
|
||||
String loggerName = ControllerEnvironment.class.getPackage().getName();
|
||||
Level level = Level.parse(System.getProperty("jinput.loglevel"));
|
||||
Logger.getLogger(loggerName).setLevel(level);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@
|
|||
<argument>-classpath</argument>
|
||||
<classpath/>
|
||||
<argument>-Djava.library.path=${project.build.directory}/natives</argument>
|
||||
<argument>-Djinput.loglevel=OFF</argument>
|
||||
<argument>net.java.games.input.example.ReadAllEvents</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
|
|
|
|||
Loading…
Reference in a new issue