Package io.micronaut.views.react.util
Class JavaUtilLoggingToSLF4J
java.lang.Object
java.util.logging.Handler
io.micronaut.views.react.util.JavaUtilLoggingToSLF4J
Forwards/redirects log messages from the GraalJS / Truffle engines themselves to SLF4J.
Note that Javascript's
console.log()
is handled differently.-
Constructor Summary
ConstructorDescriptionJavaUtilLoggingToSLF4J
(org.slf4j.Logger logger) Constructs a handler that will forward messages to the given SLF4J logger. -
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
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