| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.log.output.AbstractTargetorg.apache.log.output.AbstractOutputTargetorg.apache.log.output.io.StreamTargetorg.apache.log.output.io.FileTargetorg.apache.log.output.io.SafeFileTargetpublic class SafeFileTargetextends FileTargetField 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 IOExceptionConstruct 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