public class OutputStreamAppender<E> extends UnsynchronizedAppenderBase<E>
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 and Description |
|---|
OutputStreamAppender() |
| Modifier and Type | Method and Description |
|---|---|
Encoder<E> |
getEncoder() |
java.io.OutputStream |
getOutputStream()
The underlying output stream used by this appender.
|
boolean |
isImmediateFlush() |
void |
setEncoder(Encoder<E> encoder) |
void |
setImmediateFlush(boolean immediateFlush) |
void |
setLayout(Layout<E> layout) |
void |
setOutputStream(java.io.OutputStream outputStream)
Sets the @link OutputStream} where the log output will go.
|
void |
start()
Checks that requires parameters are set and if everything is in order,
activates this appender.
|
void |
stop()
Stop this appender instance.
|
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic java.io.OutputStream getOutputStream()
public void start()
start in interface LifeCyclestart in class UnsynchronizedAppenderBase<E>public void stop()
Stopped appenders cannot be reused.
stop in interface LifeCyclestop in class UnsynchronizedAppenderBase<E>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.
outputStream - An already opened OutputStream.public boolean isImmediateFlush()
public void setImmediateFlush(boolean immediateFlush)
Copyright © 2010 - 2023 Adobe. All Rights Reserved