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 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.The underlying output stream used by this appender.boolean
Deprecated.void
setEncoder
(Encoder<E> encoder) Deprecated.void
setImmediateFlush
(boolean immediateFlush) Deprecated.void
Deprecated.void
setOutputStream
(OutputStream outputStream) Deprecated.Sets the @link OutputStream} where the log output will go.void
start()
Deprecated.Checks that requires parameters are set and if everything is in order, activates this appender.void
stop()
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
-
Constructor Details
-
OutputStreamAppender
public OutputStreamAppender()Deprecated.
-
-
Method Details
-
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 interfaceLifeCycle
- Overrides:
start
in classUnsynchronizedAppenderBase<E>
-
setLayout
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 interfaceLifeCycle
- Overrides:
stop
in classUnsynchronizedAppenderBase<E>
-
setOutputStream
Deprecated.Sets the @link OutputStream} where the log output will go. The specified
OutputStream
must be opened by the user and be writable. TheOutputStream
will be closed when the appender instance is closed.- Parameters:
outputStream
- An already opened OutputStream.
-
getEncoder
Deprecated. -
setEncoder
Deprecated. -
isImmediateFlush
public boolean isImmediateFlush()Deprecated. -
setImmediateFlush
public void setImmediateFlush(boolean immediateFlush) Deprecated.
-