ErrorAware, LogTarget, Closeablepublic class SafeFileTarget extends FileTarget
| Constructor | 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 | Description |
|---|---|---|
void |
processEvent(LogEvent event) |
Process a log event, via formatting and outputting it.
|
doProcessEvent, getFormatter, opengetErrorHandler, isOpen, setErrorHandlergetFile, openFile, setFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, setOutputStream, shutdownStream, writepublic 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 eventCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.