Class ReporterAppender<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
- ch.qos.logback.core.OutputStreamAppender<E>
-
- com.github.sbabcoc.logback.testng.ReporterAppender<E>
-
- All Implemented Interfaces:
ch.qos.logback.core.Appender<E>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.FilterAttachable<E>,ch.qos.logback.core.spi.LifeCycle
public class ReporterAppender<E> extends ch.qos.logback.core.OutputStreamAppender<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanlogToStdOut
-
Constructor Summary
Constructors Constructor Description ReporterAppender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoLogToStdOut()Determine if output is being forked to STDOUT and the TestNG HTML report.voidsetLogToStdOut(boolean logToStdOut)Specify if output should be sent to STDOUT in addition to the TestNG HTML report.voidsetOutputStream(OutputStream outputStream)voidstart()protected voidsubAppend(E event)StringtoString()-
Methods inherited from class ch.qos.logback.core.OutputStreamAppender
append, closeOutputStream, getEncoder, getOutputStream, isImmediateFlush, setEncoder, setImmediateFlush, setLayout, stop, writeOut
-
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle- Overrides:
startin classch.qos.logback.core.OutputStreamAppender<E>
-
subAppend
protected void subAppend(E event)
- Overrides:
subAppendin classch.qos.logback.core.OutputStreamAppender<E>
-
setOutputStream
public void setOutputStream(OutputStream outputStream)
- Overrides:
setOutputStreamin classch.qos.logback.core.OutputStreamAppender<E>
-
toString
public String toString()
- Overrides:
toStringin classch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
setLogToStdOut
public void setLogToStdOut(boolean logToStdOut)
Specify if output should be sent to STDOUT in addition to the TestNG HTML report.- Parameters:
logToStdOut-falseto send output only to the TestNG HTML report;trueto fork output to STDOUT and the TestNG HTML report.
-
doLogToStdOut
public boolean doLogToStdOut()
Determine if output is being forked to STDOUT and the TestNG HTML report.- Returns:
falseif output is being sent solely to the TestNG HTML report;trueif output is being forked to STDOUT and the TestNG HTML report.
-
-