Formats the given log event into its core string representation.
The log event to format (must be a valid, immutable LogEvent
).
The formatted string representing the event's core content. The formatted event will be the output of the appender.
Returns a string describing the layout, ideally including the formatter function name or configuration. Used for diagnostics or debugging.
Interface to handle formatting of log events sent to appenders. The format defines the core structure of the log message content before it is sent to appenders. It is not intended for adornment or presentation (such as color or Excel formatting), but strictly for the canonical, consistent string representation of the log event.
Remarks
Layout
should be deterministic and MUST NOT mutate the event.See
LogEvent for the structure of log events.