Package ch.qos.logback.core
Class OutputStreamAppender<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.UnsynchronizedAppenderBase<E>
-
- ch.qos.logback.core.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 aOutputStream. 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 Summary
Constructors Constructor Description OutputStreamAppender()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Encoder<E>getEncoder()Deprecated.java.io.OutputStreamgetOutputStream()Deprecated.The underlying output stream used by this appender.booleanisImmediateFlush()Deprecated.voidsetEncoder(Encoder<E> encoder)Deprecated.voidsetImmediateFlush(boolean immediateFlush)Deprecated.voidsetLayout(Layout<E> layout)Deprecated.voidsetOutputStream(java.io.OutputStream outputStream)Deprecated.Sets the @link OutputStream} where the log output will go.voidstart()Deprecated.Checks that requires parameters are set and if everything is in order, activates this appender.voidstop()Deprecated.Stop this appender instance.-
Methods inherited from class ch.qos.logback.core.UnsynchronizedAppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
-
-
-
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:
startin interfaceLifeCycle- Overrides:
startin classUnsynchronizedAppenderBase<E>
-
stop
public void stop()
Deprecated.Stop this appender instance. The underlying stream or writer is also closed.Stopped appenders cannot be reused.
- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classUnsynchronizedAppenderBase<E>
-
setOutputStream
public void setOutputStream(java.io.OutputStream outputStream)
Deprecated.Sets the @link OutputStream} where the log output will go. The specified
OutputStreammust be opened by the user and be writable. TheOutputStreamwill be closed when the appender instance is closed.- Parameters:
outputStream- An already opened OutputStream.
-
isImmediateFlush
public boolean isImmediateFlush()
Deprecated.
-
setImmediateFlush
public void setImmediateFlush(boolean immediateFlush)
Deprecated.
-
-