public interface ILoggingEventCache
ILoggingEvent instances.| Modifier and Type | Method and Description |
|---|---|
java.util.List<ch.qos.logback.classic.spi.ILoggingEvent> |
get()
Retrieves a list containing 0 or more cached
ILoggingEvents. |
void |
put(ch.qos.logback.classic.spi.ILoggingEvent event)
Stores the provided event in the cache.
|
java.util.List<ch.qos.logback.classic.spi.ILoggingEvent> get()
ILoggingEvents.
Note: Implementations of this method must return a non-null list, even if the list is empty, and the
returned list must not contain any null elements. If the caching implementation has discarded any of
the events that were passed to put(ILoggingEvent), they should be completely omitted from the event
list returned.null list containing 0 or more cached eventsvoid put(ch.qos.logback.classic.spi.ILoggingEvent event)
SoftReference or
other java.lang.ref type which could potentially result in the event being garbage collected before the
get() method is called.event - the event to cache