org.apache.log.output

Class FileOutputLogTarget

public class FileOutputLogTarget extends DefaultOutputLogTarget

Deprecated: Use org.apache.log.output.io.FileTarget as this class is not thread safe

This is a basic Output log target that writes to a file.

Author: Peter Donald Stephen McConnell

Constructor Summary
FileOutputLogTarget()
FileOutputLogTarget(String filename)
FileOutputLogTarget(String filename, boolean append)
Method Summary
voidsetAppend(boolean append)
voidsetFilename(String filename)
Overwrites the m_output value in the super class through assignment of an OutputStreamWriter based on a supplied file path.

Constructor Detail

FileOutputLogTarget

public FileOutputLogTarget()

FileOutputLogTarget

public FileOutputLogTarget(String filename)

FileOutputLogTarget

public FileOutputLogTarget(String filename, boolean append)

Method Detail

setAppend

public void setAppend(boolean append)

setFilename

public void setFilename(String filename)
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