Class OutputStreamAppender<E>

  • All Implemented Interfaces:
    Appender<E>, ContextAware, FilterAttachable<E>, LifeCycle
    Direct Known Subclasses:
    ConsoleAppender, FileAppender

    @Deprecated(since="2022-01-27")
    public class OutputStreamAppender<E>
    extends UnsynchronizedAppenderBase<E>
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    OutputStreamAppender appends events to a OutputStream. This class provides basic services that other appenders build upon. For more information about this appender, please refer to the online manual at http://logback.qos.ch/manual/appenders.html#OutputStreamAppender
    • Constructor Detail

      • OutputStreamAppender

        public OutputStreamAppender()
        Deprecated.
    • Method Detail

      • getOutputStream

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

        public void start()
        Deprecated.
        Checks that requires parameters are set and if everything is in order, activates this appender.
        Specified by:
        start in interface LifeCycle
        Overrides:
        start in class UnsynchronizedAppenderBase<E>
      • setLayout

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

        public void stop()
        Deprecated.
        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)
        Deprecated.

        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()
        Deprecated.
      • setEncoder

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

        public boolean isImmediateFlush()
        Deprecated.
      • setImmediateFlush

        public void setImmediateFlush​(boolean immediateFlush)
        Deprecated.