Exemple #1
0
 public void error(String tag, String message, Throwable exception) {
   if (logLevel >= LOG_ERROR) {
     System.err.println(tag + ": " + message);
     exception.printStackTrace(System.err);
   }
 }
Exemple #2
0
 /**
  * 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);
 }
Exemple #3
0
 public void debug(String tag, String message, Throwable exception) {
   if (logLevel >= LOG_DEBUG) {
     System.out.println(tag + ": " + message);
     exception.printStackTrace(System.out);
   }
 }