Package dev.frostlake.executor.udf
Class TruffleLogBridge
java.lang.Object
java.util.logging.Handler
dev.frostlake.executor.udf.TruffleLogBridge
Routes Truffle/polyglot log output into SLF4J — the "configure logging using the polyglot
embedding API" option: installed as the
engine log
handler, so GraalVM's warnings and diagnostics land in the engine log (with per-language logger
names under the polyglot. prefix) instead of being printed to stderr.
installOn(Engine.Builder) respects the documented host-launcher override: when
-Dpolyglot.log.file=<path> is set, no handler is installed and the polyglot runtime
writes to that file itself.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
TruffleLogBridge
public TruffleLogBridge()
-
-
Method Details
-
installOn
public static void installOn(org.graalvm.polyglot.Engine.Builder builder) Add this bridge tobuilderunless the user asked for a log file via-Dpolyglot.log.file, which the polyglot runtime should then honour directly. -
publish
-
flush
public void flush() -
close
public void close()
-