setEndOfBatch

Sets whether this event is the last one in a batch. Used by asynchronous Loggers and Appenders to signal to
buffered downstream components when to flush to disk, as a more efficient alternative to the
immediateFlush=true configuration.

isIncludeLocation

Returns whether the source of the logging request is required downstream. Asynchronous Loggers and Appenders use
this flag to determine whether to take a StackTrace snapshot or not before handing off this event to
another thread.

setIncludeLocation

Sets whether the source of the logging request is required downstream. Asynchronous Loggers and Appenders use
this flag to determine whether to take a StackTrace snapshot or not before handing off this event to
another thread.

getContextData

Context data (also known as Mapped Diagnostic Context or MDC) is data that is set by the application to be
included in all subsequent log events. The default source for context data is the ThreadContext (and
properties
configured on the Logger that logged the event), but users can configure a custom ContextDataInjector
to inject key-value pairs from any arbitrary source.

getInstant

Caution: if this LogEvent implementation is mutable and reused for multiple consecutive log messages,
then the Instant object returned by this method is also mutable and reused.
Client code should not keep a reference to the returned object but make a copy instead.