APISonar


com.oracle.truffle.api.TruffleLogger.log

> com > oracle > truffle > api > TruffleLogger > log
com APIs oracle APIs truffle APIs api APIs TruffleLogger APIs log APIs

Example 1
private final TruffleLogger log;

    public void logException(String prefix, Throwable ex) {
        if (log.isLoggable(Level.FINE)) {
            log.log(Level.FINE, "CONTEXT " + id + " " + prefix, ex);
        }
    }
Example 2
private final TruffleLogger log;

    public int execute(VirtualFrame frame) {
        log.log(level, message);
        return result;
    }
Example 3
private static final TruffleLogger LOG = TruffleLogger.getLogger("engine", PolyglotLanguageContext.class);

    void preInitialize() {
        ensureInitialized(null);
        LOG.log(Level.FINE, "Pre-initialized context for language: {0}", language.getId());
    }
Example 4
private static final TruffleLogger LOG = TruffleLogger.getLogger(SLLanguage.ID, SLFunction.class);

    protected void setCallTarget(RootCallTarget callTarget) {
        this.callTarget = callTarget;
        /*
         * We have a new call target. Invalidate all code that speculated that the old call target
         * was stable.
         */
        LOG.log(Level.FINE, "Installed call target for: {0}", name);
        callTargetStable.invalidate();
    }