Class HarvestFileHandler
- java.lang.Object
- 
- java.util.logging.Handler
- 
- java.util.logging.StreamHandler
- 
- java.util.logging.FileHandler
- 
- gov.nasa.pds.harvest.search.logging.handler.HarvestFileHandler
 
 
 
 
- 
 public class HarvestFileHandler extends FileHandler Class to setup a file handler for the tools logging capability.- Author:
- mcayanan
 
- 
- 
Constructor SummaryConstructors Constructor Description HarvestFileHandler(String file, boolean append, Level level, Formatter formatter)Constructor.HarvestFileHandler(String file, Formatter formatter)Constructor that does not append to a file and automatically sets the log level to 'ALL'.HarvestFileHandler(String file, Level level, Formatter formatter)Constructor that does not append to a file.
 - 
Method Summary- 
Methods inherited from class java.util.logging.FileHandlerclose, publish
 - 
Methods inherited from class java.util.logging.StreamHandlerflush, isLoggable, setEncoding, setOutputStream
 - 
Methods inherited from class java.util.logging.HandlergetEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
- 
 
- 
- 
- 
Constructor Detail- 
HarvestFileHandlerpublic HarvestFileHandler(String file, Formatter formatter) throws SecurityException, IOException Constructor that does not append to a file and automatically sets the log level to 'ALL'.- Parameters:
- file- A file name to store the logging messages. If the file exists, it will overwrite the existing contents.
- formatter- Formatter to be used to format the log messages.
- Throws:
- SecurityException
- IOException
 
 - 
HarvestFileHandlerpublic HarvestFileHandler(String file, Level level, Formatter formatter) throws SecurityException, IOException Constructor that does not append to a file.- Parameters:
- file- A file name to store the logging messages.
- level- Sets the logging level.
- formatter- Formatter to be used to format the log messages.
- Throws:
- SecurityException
- IOException
 
 - 
HarvestFileHandlerpublic HarvestFileHandler(String file, boolean append, Level level, Formatter formatter) throws SecurityException, IOException Constructor.- Parameters:
- file- A file name to store the logging messages.
- append- A flag to tell the handler to append to the file or to overwrite the existing contents.
- level- Sets the logging level.
- formatter- Formatter to be used to format the log messages.
- Throws:
- SecurityException
- IOException
 
 
- 
 
-