org.apache.log.output.io
public class WriterTarget extends AbstractOutputTarget
Modifier and Type | Field and Description |
---|---|
protected java.io.Writer |
m_output
Deprecated.
Accessing this variable in subclasses is no longer supported
and will become private in the future.
|
m_formatter
Constructor and Description |
---|
WriterTarget(java.io.Writer writer,
Formatter formatter)
Construct target with a specific writer and formatter.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Shutdown target.
|
protected void |
setWriter(java.io.Writer writer)
Set the writer.
|
protected void |
shutdownWriter()
Shutdown Writer.
|
protected void |
write(java.lang.String data)
Concrete implementation of output that writes out to underlying writer.
|
doProcessEvent, getFormatter, open, output, setFormatter
error, getErrorHandler, isOpen, processEvent, setErrorHandler
protected java.io.Writer m_output
public WriterTarget(java.io.Writer writer, Formatter formatter)
writer
- the writerformatter
- the formatterprotected void setWriter(java.io.Writer writer)
writer
- the new writerprotected void write(java.lang.String data)
write
in class AbstractOutputTarget
data
- the data to outputpublic void close()
close
in class AbstractOutputTarget
protected void shutdownWriter()