| |
|
| org.apache.log.output.AbstractOutputTarget org.apache.log.output.io.WriterTarget
All known Subclasses: org.apache.log.output.DefaultOutputLogTarget,
Method Summary | |
public synchronized void | close() Shutdown target. | protected synchronized void | setWriter(Writer writer) Set the writer. | protected synchronized void | shutdownWriter() Shutdown Writer. | protected void | write(String data) Concrete implementation of output that writes out to underlying writer. |
WriterTarget | public WriterTarget(Writer writer, Formatter formatter)(Code) | | Construct target with a specific writer and formatter.
Parameters: writer - the writer Parameters: formatter - the formatter |
close | public synchronized void close()(Code) | | Shutdown target.
Attempting to write to target after close() will cause errors to be logged.
|
setWriter | protected synchronized void setWriter(Writer writer)(Code) | | Set the writer.
Close down writer and write tail if appropriate.
Parameters: writer - the new writer |
shutdownWriter | protected synchronized void shutdownWriter()(Code) | | Shutdown Writer.
|
write | protected void write(String data)(Code) | | Concrete implementation of output that writes out to underlying writer.
Parameters: data - the data to output |
|
|
|