- fix logging to only replace logger for jme3 packages

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7178 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 90bf137894
commit 0e10f7bdc3
  1. 6
      engine/src/desktop/com/jme3/system/JmeSystem.java

@ -350,8 +350,10 @@ public class JmeSystem {
Handler consoleHandler = new ConsoleHandler();
consoleHandler.setFormatter(formatter);
Logger.getLogger("").removeHandler(Logger.getLogger("").getHandlers()[0]);
Logger.getLogger("").addHandler(consoleHandler);
Logger.getLogger("com.jme3").removeHandler(Logger.getLogger("").getHandlers()[0]);
Logger.getLogger("jme3tools").removeHandler(Logger.getLogger("").getHandlers()[0]);
Logger.getLogger("com.jme3").addHandler(consoleHandler);
Logger.getLogger("jme3tools").addHandler(consoleHandler);
// Logger.getLogger("com.jme3").setLevel(Level.FINEST);
}

Loading…
Cancel
Save