Class 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 boolean logToStdOut  
      • Fields inherited from class ch.qos.logback.core.OutputStreamAppender

        encoder, lock
      • Fields inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase

        name, started
      • Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase

        context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean doLogToStdOut()
      Determine if output is being forked to STDOUT and the TestNG HTML report.
      void setLogToStdOut​(boolean logToStdOut)
      Specify if output should be sent to STDOUT in addition to the TestNG HTML report.
      void setOutputStream​(OutputStream outputStream)  
      void start()  
      protected void subAppend​(E event)  
      String toString()  
      • 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
      • Methods inherited from interface ch.qos.logback.core.spi.ContextAware

        addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
    • Field Detail

      • logToStdOut

        protected boolean logToStdOut
    • Constructor Detail

      • ReporterAppender

        public ReporterAppender()
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface ch.qos.logback.core.spi.LifeCycle
        Overrides:
        start in class ch.qos.logback.core.OutputStreamAppender<E>
      • subAppend

        protected void subAppend​(E event)
        Overrides:
        subAppend in class ch.qos.logback.core.OutputStreamAppender<E>
      • setOutputStream

        public void setOutputStream​(OutputStream outputStream)
        Overrides:
        setOutputStream in class ch.qos.logback.core.OutputStreamAppender<E>
      • toString

        public String toString()
        Overrides:
        toString in class ch.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 - false to send output only to the TestNG HTML report; true to 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:
        false if output is being sent solely to the TestNG HTML report; true if output is being forked to STDOUT and the TestNG HTML report.