Class JavaUtilLoggingToSLF4J

java.lang.Object
java.util.logging.Handler
io.micronaut.views.react.util.JavaUtilLoggingToSLF4J

@Internal public class JavaUtilLoggingToSLF4J extends Handler
Forwards/redirects log messages from the GraalJS / Truffle engines themselves to SLF4J. Note that Javascript's console.log() is handled differently.
  • Constructor Details

    • JavaUtilLoggingToSLF4J

      public JavaUtilLoggingToSLF4J(org.slf4j.Logger logger)
      Constructs a handler that will forward messages to the given SLF4J logger.
      Parameters:
      logger - An SLF4J logger that will receive the translated messages.
  • Method Details