public class SafeFileTarget extends FileTarget
| Constructor and Description |
|---|
SafeFileTarget(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(File file, boolean append, Formatter formatter) throws IOException
file - the file to write toappend - true if file is to be appended to, false otherwiseformatter - the FormatterIOException - if an error occurspublic void processEvent(LogEvent event)
processEvent in interface LogTargetprocessEvent in class AbstractTargetevent - the log eventCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.