org.apache.log.output
Class FileOutputLogTarget
java.lang.Object
org.apache.log.output.AbstractTarget
org.apache.log.output.AbstractOutputTarget
org.apache.log.output.io.WriterTarget
org.apache.log.output.DefaultOutputLogTarget
org.apache.log.output.FileOutputLogTarget
- All Implemented Interfaces:
- ErrorAware, LogTarget
Deprecated. Use org.apache.log.output.io.FileTarget as this class is not thread safe
public class FileOutputLogTarget
- extends DefaultOutputLogTarget
This is a basic Output log target that writes to a file.
- Author:
- Peter Donald, Stephen McConnell
Method Summary |
void |
setAppend(boolean append)
Deprecated. |
void |
setFilename(java.lang.String filename)
Deprecated. Overwrites the m_output value in the super class through
assignment of an OutputStreamWriter based on a supplied
file path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileOutputLogTarget
public FileOutputLogTarget()
- Deprecated.
FileOutputLogTarget
public FileOutputLogTarget(java.lang.String filename)
throws java.io.IOException
- Deprecated.
- Throws:
java.io.IOException
FileOutputLogTarget
public FileOutputLogTarget(java.lang.String filename,
boolean append)
throws java.io.IOException
- Deprecated.
- Throws:
java.io.IOException
setAppend
public void setAppend(boolean append)
- Deprecated.
setFilename
public void setFilename(java.lang.String filename)
throws java.io.IOException
- Deprecated.
- Overwrites the m_output value in the super class through
assignment of an OutputStreamWriter based on a supplied
file path. Side-effects include the creation of a
directory path based relative to the supplied filename.
- Parameters:
filename
- path and filename for log destination
- Throws:
java.io.IOException