All Implemented Interfaces:
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>
,
ch.qos.logback.core.spi.ContextAware
,
ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>
,
ch.qos.logback.core.spi.LifeCycle
public class MemoryAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
java.util.List<ch.qos.logback.classic.spi.ILoggingEvent>
getEvents
(int limit,
java.lang.String logNameMatch,
ch.qos.logback.classic.Level minSeverity)
Retrieves the most recent events with the given filtering arguments applied.
getSize
()
boolean
requiresLayout
()
resize
(int newSize)
getEvents
public java.util.List<ch.qos.logback.classic.spi.ILoggingEvent> getEvents(int limit,
java.lang.String logNameMatch,
ch.qos.logback.classic.Level minSeverity)
Retrieves the most recent events with the given filtering arguments applied.
Parameters:
limit
- Up to this many events will be returned.
logNameMatch
- if non-null/non-empty, the event's logger name must contain this text (case insensitive) in
order to match.
minSeverity
- Only events with the given severity level or greater will be returned.