Class StringAppender
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
org.springframework.geode.logging.slf4j.logback.StringAppender
- 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 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.- Since:
- 1.3.0
- See Also:
-
StringBuilder
StringBuffer
Appender
AppenderBase
Context
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected static class
protected static class
-
Field Summary
Fields inherited from class ch.qos.logback.core.AppenderBase
name, started
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
Constructor Summary
ModifierConstructorDescriptionprotected
StringAppender
(org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper stringAppenderWrapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
append
(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent) protected org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper
protected boolean
isValidLogMessage
(String message) protected String
preProcessLogMessage
(String message) protected String
toString
(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent) Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toString
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
DEFAULT_NAME
- See Also:
-
NEWLINE
- See Also:
-
-
Constructor Details
-
StringAppender
protected StringAppender(org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper stringAppenderWrapper)
-
-
Method Details
-
getLogOutput
-
getStringAppenderWrapper
protected org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper getStringAppenderWrapper() -
append
protected void append(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent) - Specified by:
append
in classch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
-
isValidLogMessage
-
preProcessLogMessage
-
toString
-