Class MemoryAppender

java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
ch.qos.logback.core.read.ListAppender<ch.qos.logback.classic.spi.ILoggingEvent>
swiss.trustbroker.test.util.MemoryAppender
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.read.ListAppender<ch.qos.logback.classic.spi.ILoggingEvent>
  • Field Summary

    Fields inherited from class ch.qos.logback.core.read.ListAppender

    list

    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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(String string, ch.qos.logback.classic.Level level)
     
    int
     
    List<ch.qos.logback.classic.spi.ILoggingEvent>
     
    int
     
    void
     
    List<ch.qos.logback.classic.spi.ILoggingEvent>
    search(String string)
     
    List<ch.qos.logback.classic.spi.ILoggingEvent>
    search(String string, ch.qos.logback.classic.Level level)
     

    Methods inherited from class ch.qos.logback.core.read.ListAppender

    append

    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
  • Constructor Details

    • MemoryAppender

      public MemoryAppender()
  • Method Details

    • reset

      public void reset()
    • contains

      public boolean contains(String string, ch.qos.logback.classic.Level level)
    • countEventsForLogger

      public int countEventsForLogger(String loggerName)
    • search

      public List<ch.qos.logback.classic.spi.ILoggingEvent> search(String string)
    • search

      public List<ch.qos.logback.classic.spi.ILoggingEvent> search(String string, ch.qos.logback.classic.Level level)
    • getSize

      public int getSize()
    • getLoggedEvents

      public List<ch.qos.logback.classic.spi.ILoggingEvent> getLoggedEvents()