public void error(String tag, String message, Throwable exception) { if (logLevel >= LOG_ERROR) { System.err.println(tag + ": " + message); exception.printStackTrace(System.err); } }
/** * Called when an uncaught exception happens in the game loop. Default implementation prints the * exception and calls System.exit(0). */ protected void exception(Throwable ex) { ex.printStackTrace(); System.exit(0); }
public void debug(String tag, String message, Throwable exception) { if (logLevel >= LOG_DEBUG) { System.out.println(tag + ": " + message); exception.printStackTrace(System.out); } }