public interface LogHandlerExtension
extends org.graalvm.nativeimage.LogHandler
LogHandler for supporting suppression of fatal error logging (e.g.,
implementing flood control) and redirection of fatal error logging (e.g., redirect fatal error
logging to a hs_err_pid<NNNN>_libjvmci.log file).| Modifier and Type | Method and Description |
|---|---|
default Log |
enterFatalContext(org.graalvm.nativeimage.c.function.CodePointer callerIP,
String msg,
Throwable ex)
This method gets called if the VM finds itself in a fatal, non-recoverable error situation.
|
default boolean |
fatalContext(org.graalvm.nativeimage.c.function.CodePointer callerIP,
String msg,
Throwable ex)
This method is called by the default implementation of
LogHandlerExtension.enterFatalContext(org.graalvm.nativeimage.c.function.CodePointer, java.lang.String, java.lang.Throwable). |
default boolean fatalContext(org.graalvm.nativeimage.c.function.CodePointer callerIP,
String msg,
Throwable ex)
LogHandlerExtension.enterFatalContext(org.graalvm.nativeimage.c.function.CodePointer, java.lang.String, java.lang.Throwable).
The implementor returns true if fatal error information should be sent to
LogHandler.log(CCharPointer, UnsignedWord). Returning false specifies that no further
information is to be logged and the VM must immediately call LogHandler.fatalError().callerIP - the address of the call-site where the fatal error occurredmsg - provides optional text that was passed to the fatal error callex - provides optional exception object that was passed to the fatal error callfalse if the VM must not log error information before calling
LogHandler.fatalError()LogHandlerExtension.enterFatalContext(org.graalvm.nativeimage.c.function.CodePointer, java.lang.String, java.lang.Throwable)default Log enterFatalContext(org.graalvm.nativeimage.c.function.CodePointer callerIP, String msg, Throwable ex)
Log object if fatal error information should be
sent to the log object. Returning null specifies that no further information is to be
logged and the VM must immediately call LogHandler.fatalError().callerIP - the address of the call-site where the fatal error occurredmsg - provides optional text that was passed to the fatal error callex - provides optional exception object that was passed to the fatal error callLog object to which fatal logging is sent or null if the VM must
not do any further logging before calling LogHandler.fatalError()