org.apache.log.output.io
Class WriterTarget
- Closeable, ErrorAware, LogTarget
public class WriterTarget
This target outputs to a writer.
void | close() - Shutdown target.
|
protected void | setWriter(Writer writer) - Set the writer.
|
protected void | shutdownWriter() - Shutdown Writer.
|
protected void | write(String data) - Concrete implementation of output that writes out to underlying writer.
|
m_output
private Writer m_output
WriterTarget
public WriterTarget(Writer writer,
Formatter formatter)
Construct target with a specific writer and formatter.
writer
- the writerformatter
- the formatter
setWriter
protected void setWriter(Writer writer)
Set the writer.
Close down writer and write tail if appropriate.
shutdownWriter
protected void shutdownWriter()
Shutdown Writer.
write
protected void write(String data)
Concrete implementation of output that writes out to underlying writer.
- write in interface AbstractOutputTarget
data
- the data to output