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#OutputStreamAppenderConstructor 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, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public java.io.OutputStream getOutputStream()
public void start()
start
in interface LifeCycle
start
in class UnsynchronizedAppenderBase<E>
public void stop()
Stopped appenders cannot be reused.
stop
in interface LifeCycle
stop
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 - 2020 Adobe. All Rights Reserved