org.apache.log.output.io
Class SafeFileTarget
- ErrorAware, LogTarget
public class SafeFileTarget
A target that will open and close a file for each logevent.
This is slow but a more reliable form of logging on some
filesystems/OSes. It should only be used when there is a
small number of log events.
SafeFileTarget(File file, boolean append, Formatter formatter)- Construct file target to write to a file with a formatter.
|
SafeFileTarget
public SafeFileTarget(File file,
boolean append,
Formatter formatter)
throws IOException Construct file target to write to a file with a formatter.
file - the file to write toappend - true if file is to be appended to, false otherwiseformatter - the Formatter
"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."