public class StringAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
StringAppender
is a Appender
implementation that captures all log events/statements in-memory
appended to a String
using optionally either a builder or a buffer.StringBuilder
,
StringBuffer
,
Appender
,
AppenderBase
,
Context
Modifier and Type | Class and Description |
---|---|
static class |
StringAppender.Builder |
protected static class |
StringAppender.StringBufferAppenderWrapper |
protected static class |
StringAppender.StringBuilderAppenderWrapper |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DEFAULT_NAME |
protected static java.lang.String |
NEWLINE |
Modifier | Constructor and Description |
---|---|
protected |
StringAppender(org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper stringAppenderWrapper) |
Modifier and Type | Method and Description |
---|---|
protected void |
append(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent) |
java.lang.String |
getLogOutput() |
protected org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper |
getStringAppenderWrapper() |
protected boolean |
isValidLogMessage(java.lang.String message) |
protected java.lang.String |
preProcessLogMessage(java.lang.String message) |
protected java.lang.String |
toString(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent) |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
protected static final java.lang.String DEFAULT_NAME
protected static final java.lang.String NEWLINE
protected StringAppender(org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper stringAppenderWrapper)
public java.lang.String getLogOutput()
protected org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper getStringAppenderWrapper()
protected void append(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)
append
in class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
protected boolean isValidLogMessage(java.lang.String message)
protected java.lang.String preProcessLogMessage(java.lang.String message)
protected java.lang.String toString(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)