org.apache.log.output
Class DefaultOutputLogTarget
java.lang.Object
org.apache.log.output.AbstractTarget
org.apache.log.output.AbstractOutputTarget
org.apache.log.output.io.WriterTarget
org.apache.log.output.DefaultOutputLogTarget
- All Implemented Interfaces:
- Closeable, ErrorAware, LogTarget
- Direct Known Subclasses:
- FileOutputLogTarget, ServletOutputLogTarget
Deprecated. Use org.apache.log.output.io.WriterTarget or org.apache.log.output.io.StreamTarget as appropriate as this class encourages unsafe behaviour
- public class DefaultOutputLogTarget
- extends WriterTarget
This is a basic Output log target that writes to a stream. The format is specified via a string.
- Author:
| Field Summary |
private static java.lang.String |
FORMAT
Deprecated. |
| Method Summary |
protected void |
initPattern()
Deprecated. This is no longer the recomended way to set formatter. It is recomended that it be passed into constructor. |
void |
setFormat(java.lang.String format)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORMAT
private static final java.lang.String FORMAT
-
Deprecated.
- See Also:
- Constant Field Values
DefaultOutputLogTarget
public DefaultOutputLogTarget(Formatter formatter)
- Deprecated.
DefaultOutputLogTarget
public DefaultOutputLogTarget()
- Deprecated.
-
Default Constructor.
DefaultOutputLogTarget
public DefaultOutputLogTarget(java.io.OutputStream output)
- Deprecated.
-
Constructor that takes a stream arguement.
- Parameters:
output - the output stream
DefaultOutputLogTarget
public DefaultOutputLogTarget(java.io.Writer writer)
- Deprecated.
-
Constructor that takes a writer parameter.
- Parameters:
writer - the Writer
DefaultOutputLogTarget
public DefaultOutputLogTarget(java.io.Writer writer,
Formatter formatter)
- Deprecated.
initPattern
protected void initPattern()
-
Deprecated. This is no longer the recomended way to set formatter. It is recomended that it be passed into constructor.
-
Initialize the default pattern.
-
setFormat
public void setFormat(java.lang.String format)
-
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
Please see keelframework.org for information about new Keel releases.