Logger logger = null;
if (engine != null)
logger = engine.getLogger();
if (logger != null)
logger.log("EngineConfig: " + message, throwable);
else
{
System.out.println("EngineConfig: " + message);
System.out.println("" + throwable);
throwable.printStackTrace(System.out);