gov.nasa.pds.citool.handler.ToolsStreamHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of catalog-legacy Show documentation
Show all versions of catalog-legacy Show documentation
The Legacy Catalog Tool provides functionality for ingesting PDS3 catalog files into the PDS4 infrastructure including the Registry Service.
package gov.nasa.pds.citool.handler;
import java.io.OutputStream;
import java.util.logging.Formatter;
import java.util.logging.Level;
import java.util.logging.StreamHandler;
/**
* This class sets up a stream handler for the tools logging capability.
*
* @author mcayanan
*
*/
public class ToolsStreamHandler extends StreamHandler {
/**
* Constructor. Automatically sets the log level to 'ALL'.
*
* @param out An output stream.
* @param formatter Formatter to be used to format the log messages.
*/
public ToolsStreamHandler(OutputStream out, Formatter formatter) {
this(out, Level.ALL, formatter);
}
/**
* Constructor.
* @param out An output stream.
* @param level Sets the log level, specifying which message levels will
* be logged by this handler.
* @param formatter Formatter to be used to format the log messages.
*/
public ToolsStreamHandler(OutputStream out, Level level, Formatter formatter) {
super(out, formatter);
setLevel(level);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy