/** {@inheritDoc} */ @Override public void onDisable() { debugLog.close(); this.banker = null; this.bank = null; log(Level.INFO, "- Disabled"); }
public static void staticLog(Level level, String msg) { if (level == Level.FINE && GlobalDebug >= 1) { staticDebugLog(Level.INFO, msg); return; } else if (level == Level.FINER && GlobalDebug >= 2) { staticDebugLog(Level.INFO, msg); return; } else if (level == Level.FINEST && GlobalDebug >= 3) { staticDebugLog(Level.INFO, msg); return; } else if (level != Level.FINE && level != Level.FINER && level != Level.FINEST) { log.log(level, tag + " " + msg); debugLog.log(level, tag + " " + msg); } }
/** * Print messages to the Debug Log, if the servers in Debug Mode then we also wan't to print the * messages to the standard Server Console. * * @param level The Log-{@link Level} * @param msg The message */ public static void staticDebugLog(Level level, String msg) { log.log(level, "[MVCore-Debug] " + msg); debugLog.log(level, "[MVCore-Debug] " + msg); }