public class SafeFileTarget extends FileTarget
| Constructor and Description |
|---|
SafeFileTarget(java.io.File file,
boolean append,
Formatter formatter)
Construct file target to write to a file with a formatter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processEvent(LogEvent event)
Process a log event, via formatting and outputting it.
|
getFile, openFile, setFileclose, setOutputStream, shutdownStream, writedoProcessEvent, getFormatter, opengetErrorHandler, isOpen, setErrorHandlerpublic SafeFileTarget(java.io.File file,
boolean append,
Formatter formatter)
throws java.io.IOException
file - the file to write toappend - true if file is to be appended to, false otherwiseformatter - the Formatterjava.io.IOException - if an error occurspublic void processEvent(LogEvent event)
processEvent in interface LogTargetprocessEvent in class AbstractTargetevent - the log event