Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.log.output.AbstractTarget
org.apache.log.output.AbstractOutputTarget
org.apache.log.output.io.StreamTarget
org.apache.log.output.io.FileTarget
org.apache.log.output.io.SafeFileTarget
public class SafeFileTarget
extends FileTarget
Field Summary |
Fields inherited from class org.apache.log.output.AbstractOutputTarget | |
m_formatter |
Constructor Summary | |
|
Method Summary | |
void |
|
Methods inherited from class org.apache.log.output.io.FileTarget | |
getFile , openFile , setFile |
Methods inherited from class org.apache.log.output.io.StreamTarget | |
close , setOutputStream , shutdownStream , write |
Methods inherited from class org.apache.log.output.AbstractOutputTarget | |
close , doProcessEvent , getFormatter , open , output , setFormatter , write |
Methods inherited from class org.apache.log.output.AbstractTarget | |
close , doProcessEvent , error , getErrorHandler , isOpen , open , processEvent , setErrorHandler |
public SafeFileTarget(File file, boolean append, Formatter formatter) throws IOException
Construct file target to write to a file with a formatter.
- Parameters:
file
- the file to write toappend
- true if file is to be appended to, false otherwiseformatter
- the Formatter
public void processEvent(LogEvent event)
Process a log event, via formatting and outputting it.
- Specified by:
- processEvent in interface LogTarget
- Overrides:
- processEvent in interface AbstractTarget
- Parameters:
event
- the log event