Class TruffleLogBridge

java.lang.Object
java.util.logging.Handler
dev.frostlake.executor.udf.TruffleLogBridge

public final class TruffleLogBridge extends Handler
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 Details

    • TruffleLogBridge

      public TruffleLogBridge()
  • Method Details

    • installOn

      public static void installOn(org.graalvm.polyglot.Engine.Builder builder)
      Add this bridge to builder unless the user asked for a log file via -Dpolyglot.log.file, which the polyglot runtime should then honour directly.
    • publish

      public void publish(LogRecord record)
      Specified by:
      publish in class Handler
    • flush

      public void flush()
      Specified by:
      flush in class Handler
    • close

      public void close()
      Specified by:
      close in class Handler