Package com.sun.common.util.logging
Interface LoggingConfig
- All Known Implementing Classes:
LoggingConfigImpl
@Contract
public interface LoggingConfig
Interface for Logging Commands
- Author:
- Naman Mehta
-
Method Summary
Modifier and TypeMethodDescriptioncreateZipFile(String sourceDir) Creates zip file for given sourceDirectorydeleteLoggingProperties(Collection<String> properties) Delete the properties from logging.properties file.deleteLoggingProperties(Collection<String> properties, String target) Delete the properties from logging.properties file.getLoggingProperties(String targetServer) setLoggingProperty(String propertyName, String propertyValue) Set propertyName to the propertyValue.setLoggingProperty(String propertyName, String propertyValue, String targetServer) Set propertyName to the propertyValue.updateLoggingProperties(Map<String, String> properties) Update the properties to new values. properties is a Map of names of properties and their cooresponding value.updateLoggingProperties(Map<String, String> properties, String targetServer) Update the properties to new values for given target. properties is a Map of names of properties and their coresponding value.
-
Method Details
-
setLoggingProperty
Set propertyName to the propertyValue.The logManager readConfiguration is not called in this method.
- Throws:
IOException
-
setLoggingProperty
String setLoggingProperty(String propertyName, String propertyValue, String targetServer) throws IOException Set propertyName to the propertyValue.The logManager readConfiguration is not called in this method.
- Throws:
IOException
-
updateLoggingProperties
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.- Throws:
IOException
-
updateLoggingProperties
Map<String,String> updateLoggingProperties(Map<String, String> properties, String targetServer) throws IOExceptionUpdate the properties to new values for given target. properties is a Map of names of properties and their coresponding value. If the property does not exist then it is added to the logging.properties file.- Parameters:
properties- Map of the name and value of property to add or update- Throws:
IOException
-
getLoggingProperties
- Returns:
- the properties and corresponding values in the logging.properties file for given target server.
- Throws:
IOException
-
getLoggingProperties
- Returns:
- the properties and corresponding values in the logging.properties file.
- Throws:
IOException
-
createZipFile
Creates zip file for given sourceDirectory- Throws:
IOException
-
deleteLoggingProperties
Delete the properties from logging.properties file.- Throws:
IOException
-
deleteLoggingProperties
Map<String,String> deleteLoggingProperties(Collection<String> properties, String target) throws IOException Delete the properties from logging.properties file.- Throws:
IOException
-