public class MockAppender extends AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
AppenderBase with instrumentation for unit testing.name, startedcontext| Constructor and Description |
|---|
MockAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(ch.qos.logback.classic.spi.ILoggingEvent eventObject) |
ch.qos.logback.classic.spi.ILoggingEvent |
awaitAppend(long delay) |
ch.qos.logback.classic.spi.ILoggingEvent |
getLastEvent() |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextprotected void append(ch.qos.logback.classic.spi.ILoggingEvent eventObject)
append in class AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>public ch.qos.logback.classic.spi.ILoggingEvent awaitAppend(long delay)
throws InterruptedException
InterruptedExceptionpublic ch.qos.logback.classic.spi.ILoggingEvent getLastEvent()
Copyright © 2005–2017 QOS.ch. All rights reserved.