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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    protected static class 
     
    protected static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
     

    Fields inherited from class ch.qos.logback.core.AppenderBase

    name, started

    Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

    context
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    StringAppender(org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper stringAppenderWrapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    append(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)
     
     
    protected org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper
     
    protected boolean
     
    protected String
     
    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

  • Constructor Details

    • StringAppender

      protected StringAppender(org.springframework.geode.logging.slf4j.logback.StringAppender.StringAppenderWrapper stringAppenderWrapper)
  • Method Details

    • getLogOutput

      public String 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 class ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
    • isValidLogMessage

      protected boolean isValidLogMessage(String message)
    • preProcessLogMessage

      protected String preProcessLogMessage(String message)
    • toString

      protected String toString(ch.qos.logback.classic.spi.ILoggingEvent loggingEvent)