public class FileDumpHandler extends Handler
Handler that checks for parameters that come along
with the log record that should be "dumped" in a directory.
Simple set up the FileDumpHandler and write code like
... Log.log(Level.INFO, "input data", myFile); ...This result in "myFile" content copied to the file dump directory.
This implementation supports parameters of type
ILocatorILocatorSupportFileInputStream| Constructor and Description |
|---|
FileDumpHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static void |
dump(File logDir,
Object target) |
void |
flush() |
File |
getDirectory() |
void |
publish(LogRecord record) |
void |
setDirectory(File directory) |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, setEncoding, setErrorManager, setFilter, setFormatter, setLevelpublic static void dump(File logDir, Object target) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic void close()
throws SecurityException
close in class HandlerSecurityExceptionpublic File getDirectory()
public void setDirectory(File directory)
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.