|
|
@ -341,27 +341,13 @@ public class JmeDesktopSystem extends JmeSystemDelegate { |
|
|
|
if (initialized) { |
|
|
|
if (initialized) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
initialized = true; |
|
|
|
initialized = true; |
|
|
|
try { |
|
|
|
logger.log(Level.INFO, getBuildInfo()); |
|
|
|
if (!lowPermissions) { |
|
|
|
if (!lowPermissions) { |
|
|
|
// can only modify logging settings
|
|
|
|
if (NativeLibraryLoader.isUsingNativeBullet()) { |
|
|
|
// if permissions are available
|
|
|
|
NativeLibraryLoader.loadNativeLibrary("bulletjme", true); |
|
|
|
// JmeFormatter formatter = new JmeFormatter();
|
|
|
|
|
|
|
|
// Handler fileHandler = new FileHandler("jme.log");
|
|
|
|
|
|
|
|
// fileHandler.setFormatter(formatter);
|
|
|
|
|
|
|
|
// Logger.getLogger("").addHandler(fileHandler);
|
|
|
|
|
|
|
|
// Handler consoleHandler = new ConsoleHandler();
|
|
|
|
|
|
|
|
// consoleHandler.setFormatter(formatter);
|
|
|
|
|
|
|
|
// Logger.getLogger("").removeHandler(Logger.getLogger("").getHandlers()[0]);
|
|
|
|
|
|
|
|
// Logger.getLogger("").addHandler(consoleHandler);
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// } catch (IOException ex){
|
|
|
|
|
|
|
|
// logger.log(Level.SEVERE, "I/O Error while creating log file", ex);
|
|
|
|
|
|
|
|
} catch (SecurityException ex) { |
|
|
|
|
|
|
|
logger.log(Level.SEVERE, "Security error in creating log file", ex); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
logger.log(Level.INFO, getBuildInfo()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|