org.apache.log.output.io
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, setFile
close, setOutputStream, shutdownStream, write
doProcessEvent, getFormatter, open
getErrorHandler, isOpen, setErrorHandler
public 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 LogTarget
processEvent
in class AbstractTarget
event
- the log eventCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.