Class RainbowGumAlertEvent
java.lang.Object
jdk.jfr.Event
io.jstach.rainbowgum.jfr.RainbowGumAlertEvent
- Direct Known Subclasses:
RainbowGumAlertEvent.DebugEvent, RainbowGumAlertEvent.ErrorEvent, RainbowGumAlertEvent.InfoEvent, RainbowGumAlertEvent.TraceEvent, RainbowGumAlertEvent.WarnEvent
public abstract sealed class RainbowGumAlertEvent
extends Event
permits RainbowGumAlertEvent.TraceEvent, RainbowGumAlertEvent.DebugEvent, RainbowGumAlertEvent.InfoEvent, RainbowGumAlertEvent.WarnEvent, RainbowGumAlertEvent.ErrorEvent
Base JFR event committed by
JfrAlertListener, one concrete subclass per SLF4J /
System.Logger.Level, deliberately a separate JFR
event type family from RainbowGumLogEvent (same field shape and per-level
split, but its own @Names) even though both are committed the same way and
carry the same fields: an alert (an appender failing to write, an async publisher's
queue overflowing, etc.) is not an application log line, and merging the two under one
event name would make it impossible to tell them apart in a recording - e.g. filtering
jfr print --events io.jstach.rainbowgum.Error would return both genuine
application errors and RainbowGum's own internal alerts with no way to distinguish
them.
See RainbowGumLogEvent for the field/annotation rationale - identical here.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDEBUG level alert.static final classERROR level alert.static final classINFO level alert.static final classTRACE level alert.static final classWARN level alert. -
Field Summary
Fields -
Method Summary
-
Field Details
-
message
-
logger
-
throwable
-