All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nasa.pds.citool.handler.ToolsStreamHandler Maven / Gradle / Ivy

Go to download

The Catalog Tool provides functionality for ingesting PDS3 catalog files into the the PDS4 infrastructure including the Registry and Storage Services.

There is a newer version: 2.2.0
Show newest version
// Copyright 2006-2007, by the California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged.
// Any commercial use must be negotiated with the Office of Technology Transfer
// at the California Institute of Technology.
//
// This software is subject to U. S. export control laws and regulations
// (22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
// is subject to U.S. export control laws and regulations, the recipient has
// the responsibility to obtain export licenses or other export authority as
// may be required before exporting such information to foreign countries or
// providing access to foreign nationals.
//
// $Id$

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 - 2025 Weber Informatics LLC | Privacy Policy