@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))); }
// Convenience method for logging public static final void log(String msg) { Nexus nexus = getInstance(); nexus.ensureDatacore(); nexus.datacore.log(msg); }