org.apache.log.output
public class DefaultOutputLogTarget extends WriterTarget
Deprecated: Use org.apache.log.output.io.WriterTarget or org.apache.log.output.io.StreamTarget as appropriate as this class encourages unsafe behaviour
This is a basic Output log target that writes to a stream. The format is specified via a string.Constructor Summary | |
---|---|
DefaultOutputLogTarget(Formatter formatter) | |
DefaultOutputLogTarget()
Default Constructor.
| |
DefaultOutputLogTarget(OutputStream output)
Constructor that takes a stream arguement.
| |
DefaultOutputLogTarget(Writer writer)
Constructor that takes a writer parameter.
| |
DefaultOutputLogTarget(Writer writer, Formatter formatter) |
Method Summary | |
---|---|
protected void | initPattern()
Initialize the default pattern.
|
void | setFormat(String format)
Set the format string for this target.
|
Parameters: output the output stream
Parameters: writer the Writer
Deprecated: This is no longer the recomended way to set formatter. It is recomended that it be passed into constructor.
Initialize the default pattern.Deprecated: This method is unsafe as it assumes formatter is PatternFormatter and accesses a protected attribute. Instead of calling this method It is recomended that a fully configured formatter is passed into constructor.
Set the format string for this target.Parameters: format the format string