gov.nasa.pds.tools.handler
Class ToolsFileHandler
java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.FileHandler
gov.nasa.pds.tools.handler.ToolsFileHandler
public class ToolsFileHandler
- extends java.util.logging.FileHandler
Class to setup a file handler for the tools logging capability.
- Author:
- mcayanan
Constructor Summary |
ToolsFileHandler(java.lang.String file,
boolean append,
java.util.logging.Level level,
java.util.logging.Formatter formatter)
Constructor. |
ToolsFileHandler(java.lang.String file,
java.util.logging.Formatter formatter)
Constructor that does not append to a file and automatically
sets the log level to 'ALL'. |
ToolsFileHandler(java.lang.String file,
java.util.logging.Level level,
java.util.logging.Formatter formatter)
Constructor that does not append to a file. |
Methods inherited from class java.util.logging.FileHandler |
close, publish |
Methods inherited from class java.util.logging.StreamHandler |
flush, isLoggable, setEncoding, setOutputStream |
Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToolsFileHandler
public ToolsFileHandler(java.lang.String file,
java.util.logging.Formatter formatter)
throws java.lang.SecurityException,
java.io.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:
java.lang.SecurityException
java.io.IOException
ToolsFileHandler
public ToolsFileHandler(java.lang.String file,
java.util.logging.Level level,
java.util.logging.Formatter formatter)
throws java.lang.SecurityException,
java.io.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:
java.lang.SecurityException
java.io.IOException
ToolsFileHandler
public ToolsFileHandler(java.lang.String file,
boolean append,
java.util.logging.Level level,
java.util.logging.Formatter formatter)
throws java.lang.SecurityException,
java.io.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:
java.lang.SecurityException
java.io.IOException
Copyright © 2005-2009 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.