Exemple #1
0
 @Override
 public void uncaughtException(Thread thread, Throwable throwable) {
   Nexus.LOGGER.severe("Oh no! Something unexpected happened!");
   throwable.printStackTrace();
   Nexus.getInstance()
       .channelLogHandler
       .publish(new LogRecord(Level.SEVERE, getStacktrace(throwable)));
 }
Exemple #2
0
 // Convenience method for logging
 public static final void log(String msg) {
   Nexus nexus = getInstance();
   nexus.ensureDatacore();
   nexus.datacore.log(msg);
 }