org.apache.log.output.io
Class WriterTarget
- ErrorAware, LogTarget
public class WriterTarget
This target outputs to a writer.
- Peter Donald
protected Writer | m_output - Accessing this variable in subclasses is no longer supported
and will become private in the future.
|
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
protected Writer m_output
Accessing this variable in subclasses is no longer supported
and will become private in the future.
WriterTarget
public WriterTarget(Writer writer,
Formatter formatter)
Construct target with a specific writer and formatter.
writer
- the writerformatter
- the formatter
close
public void close()
Shutdown target.
Attempting to write to target after close() will cause errors to be logged.
- close in interface AbstractOutputTarget
setWriter
protected void setWriter(Writer writer)
Set the writer.
Close down writer and write tail if appropriate.
writer
- the new writer
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
"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."