Returns the last LogEvent
delivered to the appender, or null
if none sent yet.
The last LogEvent
object delivered, or null
.
Sends a structured log event to the appender.
The log event object to deliver.
Sends a log message to the appender, specifying the event type and optional structured extra fields.
The message to log.
The type of log event (from LOG_EVENT
enum).
Optional
extraFields: objectOptional structured data (object) to attach to the log event (e.g., context info, tags).
Interface for all appenders (log destinations). An appender delivers log events to a specific output channel (e.g., console, Excel, file, remote service).
Remarks
log(event: LogEvent)
log(msg: string, event: LOG_EVENT)
Layout
interface).AbstractAppender
base class and are not part of the interface contract.getLastLogEvent()
is primarily for diagnostics, testing, or error reporting.toString()
must return diagnostic information about the appender and its last log event.LogEvent
object or a message with an event type and optional extra fields. This allows flexibility in how log events are created and sent.See