Class OutputStreamAppender<E>

    • Constructor Detail

      • OutputStreamAppender

        public OutputStreamAppender()
    • Method Detail

      • getOutputStream

        public java.io.OutputStream getOutputStream()
        The underlying output stream used by this appender.
        Returns:
      • setLayout

        public void setLayout​(Layout<E> layout)
      • stop

        public void stop()
        Stop this appender instance. The underlying stream or writer is also closed.

        Stopped appenders cannot be reused.

        Specified by:
        stop in interface LifeCycle
        Overrides:
        stop in class UnsynchronizedAppenderBase<E>
      • setOutputStream

        public void setOutputStream​(java.io.OutputStream outputStream)

        Sets the @link OutputStream} where the log output will go. The specified OutputStream must be opened by the user and be writable. The OutputStream will be closed when the appender instance is closed.

        Parameters:
        outputStream - An already opened OutputStream.
      • getEncoder

        public Encoder<E> getEncoder()
      • setEncoder

        public void setEncoder​(Encoder<E> encoder)
      • isImmediateFlush

        public boolean isImmediateFlush()
      • setImmediateFlush

        public void setImmediateFlush​(boolean immediateFlush)