Class OutputStreamAppender<E>

    • Constructor Detail

      • OutputStreamAppender

        public OutputStreamAppender()
    • Method Detail

      • getOutputStream

        public OutputStream getOutputStream()
        The underlying output stream used by this appender.
      • 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
        stop in class UnsynchronizedAppenderBase<E>
      • setOutputStream

        public void setOutputStream​(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.

        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)