Readonly
extraAdditional metadata for the log event, for extension and contextual purposes. This field is immutable and must be a plain object. Intended for extensibility—avoid storing sensitive or large data here.
Readonly
messageThe log message to be sent to the appenders.
This field is immutable. It must not be null
, undefined
, or an empty string.
Readonly
timestampThe timestamp when the event was created.
This field is immutable and must be a valid Date
instance.
Readonly
typeThe event type from the LOG_EVENT enum. This field is immutable and must be set at construction.
Interface for all log events to be sent to appenders. Defines the structure of a log event and is intended to be immutable.
Remarks
LogEvent
to ensure all invariants hold. If you implement this interface directly, you are responsible for upholding these invariants.See