public class MemoryAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
MemoryAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(ch.qos.logback.classic.spi.ILoggingEvent event) |
void |
clear() |
void |
close() |
java.util.List<ch.qos.logback.classic.spi.ILoggingEvent> |
getEvents()
Retrieves the entire list of events
|
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.
|
int |
getSize() |
boolean |
requiresLayout() |
void |
resize(int newSize) |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic static final java.lang.String NAME
protected void append(ch.qos.logback.classic.spi.ILoggingEvent event)
append in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>public java.util.List<ch.qos.logback.classic.spi.ILoggingEvent> getEvents()
public java.util.List<ch.qos.logback.classic.spi.ILoggingEvent> getEvents(int limit,
java.lang.String logNameMatch,
ch.qos.logback.classic.Level minSeverity)
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.public void resize(int newSize)
public void clear()
public int getSize()
public void close()
public boolean requiresLayout()