APISonar


org.graalvm.compiler.debug.DelegatingDebugConfig.Level.LOG

> org > graalvm > compiler > debug > DelegatingDebugConfig > Level > LOG
org APIs graalvm APIs compiler APIs debug APIs DelegatingDebugConfig APIs Level APIs LOG APIs

Example 1
public static Scope forceLog() throws Throwable {
        ArrayList<Object> context = new ArrayList<>();
        for (Object obj : context()) {
            context.add(obj);
        }
        return Debug.sandbox("forceLog", new DelegatingDebugConfig().override(Level.LOG, Integer.MAX_VALUE).enable(LOG_METHOD), context.toArray());
    }
Example 2
public static void setLogLevel(int logLevel) {
        TopLevelDebugConfig config = fetchTopLevelDebugConfig("setLogLevel");
        if (config != null) {
            config.override(DelegatingDebugConfig.Level.LOG, logLevel);
            config.delegate(DelegatingDebugConfig.Feature.LOG_METHOD);
            recursiveUpdateFlags();
        }
    }