| |
|
| org.apache.log.output.AbstractOutputTarget org.apache.log.output.io.StreamTarget
All known Subclasses: org.apache.log.output.io.FileTarget,
Method Summary | |
public synchronized void | close() Shutdown target. | protected synchronized void | setOutputStream(OutputStream outputStream) Set the output stream. | protected synchronized void | shutdownStream() Shutdown output stream. | protected synchronized void | write(String data) Abstract method that will output event. |
StreamTarget | public StreamTarget(OutputStream outputStream, Formatter formatter)(Code) | | Constructor that writes to a stream and uses a particular formatter.
Parameters: outputStream - the OutputStream to write to Parameters: formatter - the Formatter to use |
close | public synchronized void close()(Code) | | Shutdown target.
Attempting to write to target after close() will cause errors to be logged.
|
setOutputStream | protected synchronized void setOutputStream(OutputStream outputStream)(Code) | | Set the output stream.
Close down old stream and write tail if appropriate.
Parameters: outputStream - the new OutputStream |
shutdownStream | protected synchronized void shutdownStream()(Code) | | Shutdown output stream.
|
write | protected synchronized void write(String data)(Code) | | Abstract method that will output event.
Parameters: data - the data to be output |
|
|
|