// Prevent engine initialization code from recreating other engines
setInstance(this);
// Instantiate the logger facade
if (Edition.CURRENT == Edition.GWT) {
this.loggerFacade = new LoggerFacade();
} else {
this.classLoader = createClassLoader();
this.userClassLoader = null;
String loggerFacadeClass = System.getProperty(
"org.restlet.engine.loggerFacadeClass",
"org.restlet.engine.log.LoggerFacade");
try {
this.loggerFacade = (LoggerFacade) getClassLoader().loadClass(
loggerFacadeClass).newInstance();
} catch (Exception e) {
this.loggerFacade = new LoggerFacade();
this.loggerFacade.getLogger("org.restlet").log(Level.WARNING,
"Unable to register the logger facade", e);
}
}