|
|
@ -338,19 +338,16 @@ public class JmeSystem { |
|
|
|
// can only modify logging settings
|
|
|
|
// can only modify logging settings
|
|
|
|
// if permissions are available
|
|
|
|
// if permissions are available
|
|
|
|
|
|
|
|
|
|
|
|
JmeFormatter formatter = new JmeFormatter(); |
|
|
|
// JmeFormatter formatter = new JmeFormatter();
|
|
|
|
// Handler fileHandler = new FileHandler("jme.log");
|
|
|
|
// Handler fileHandler = new FileHandler("jme.log");
|
|
|
|
// fileHandler.setFormatter(formatter);
|
|
|
|
// fileHandler.setFormatter(formatter);
|
|
|
|
// Logger.getLogger("").addHandler(fileHandler);
|
|
|
|
// Logger.getLogger("").addHandler(fileHandler);
|
|
|
|
|
|
|
|
|
|
|
|
Handler consoleHandler = new ConsoleHandler(); |
|
|
|
// Handler consoleHandler = new ConsoleHandler();
|
|
|
|
consoleHandler.setFormatter(formatter); |
|
|
|
// consoleHandler.setFormatter(formatter);
|
|
|
|
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);
|
|
|
|
// Logger.getLogger("").removeHandler(Logger.getLogger("").getHandlers()[0]);
|
|
|
|
|
|
|
|
// Logger.getLogger("").addHandler(consoleHandler);
|
|
|
|
} |
|
|
|
} |
|
|
|
// } catch (IOException ex){
|
|
|
|
// } catch (IOException ex){
|
|
|
|
// logger.log(Level.SEVERE, "I/O Error while creating log file", ex);
|
|
|
|
// logger.log(Level.SEVERE, "I/O Error while creating log file", ex);
|
|
|
|