| |
|
| org.jivesoftware.util.log.output.AbstractOutputTarget org.jivesoftware.util.log.output.io.WriterTarget
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 send 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 send 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 |
|
|
|