// NOTE leaves standard-out going to log public static <T> T suppressJEditErrorLog(Function<T> func, Object... params) { try { org.gjt.sp.util.Log.init(true, org.gjt.sp.util.Log.ERROR + 1); return func.apply(params); } finally { org.gjt.sp.util.Log.init(false, org.gjt.sp.util.Log.WARNING); } }
public static void jEditDebugLogging() { org.gjt.sp.util.Log.init(true, org.gjt.sp.util.Log.DEBUG); org.gjt.sp.jedit.Debug.TOKEN_MARKER_DEBUG = true; org.gjt.sp.jedit.Debug.CHUNK_CACHE_DEBUG = true; }