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

com.sun.common.util.logging.LoggingConfig Maven / Gradle / Ivy

There is a newer version: 10.0-b28
Show newest version
package com.sun.common.util.logging;

import org.jvnet.hk2.annotations.Contract;
import java.util.Map;
import java.util.Set;
import java.io.IOException;

@Contract
public interface LoggingConfig {
	/* set propertyName to be propertyValue.  The logManager 
	*  readConfiguration is not called in this method.
	*/ 
	String setLoggingProperty(String propertyName, String propertyValue) throws IOException;
	
	/* update the properties to new values.  properties is a Map of names of properties and 
	 * their cooresponding value.  If the property does not exist then it is added to the
	 * logging.properties file.  
	 * 
	 * The readConfiguration method is called on the logManager after updating the properties.  
	*/ 	
	Map updateLoggingProperties(Map properties) throws IOException;
	
	/* get the properties and corresponding values in the logging.properties file.
	*/	
	Map getLoggingProperties() throws IOException;
	
	/* remove a set of properties from the logging.properties file.
	*/
	void removeLoggingProperties(Set properties)throws IOException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy