@Contract
public interface LoggingConfig
Modifier and Type | Method and Description |
---|---|
String |
createZipFile(String sourceDir)
Creates a ZIP file from a given directory.
|
Map<String,String> |
deleteLoggingProperties(Map<String,String> props)
Deletes all properties from the provided list.
|
String |
getLoggingFileDetails() |
Map<String,String> |
getLoggingProperties()
Get all properties from the managed file.
|
Map<String,String> |
getLoggingProperties(boolean usePlaceholderReplacement)
Get all properties from the managed file.
|
String |
getLoggingProperty(String propertyName)
Gets a given property from the managed file.
|
void |
initialize(String target)
Initializes the configuration for a given target.
|
Map<String,String> |
setLoggingProperties(Map<String,String> props)
Sets all properties within the managed file.
|
String |
setLoggingProperty(String propertyName,
String propertyValue)
Sets the given property within the managed file.
|
void initialize(String target) throws IOException
target
- the target to fetch the logs from.IOException
- if an error occurred while reading from the managed file.String getLoggingProperty(String propertyName) throws IOException
propertyName
- the name of the property to get.IOException
- if an error occurred while reading from the managed file.Map<String,String> getLoggingProperties() throws IOException
IOException
- if an error occurred while reading from the managed file.Map<String,String> getLoggingProperties(boolean usePlaceholderReplacement) throws IOException
usePlaceHolderReplacement
- whether toIOException
- if an error occurred while reading from the managed file.String setLoggingProperty(String propertyName, String propertyValue) throws IOException
propertyName
- the name of the property to set.propertyValue
- the value of the property to set.IOException
- if an error occurred while writing to the managed file.Map<String,String> setLoggingProperties(Map<String,String> props) throws IOException
IOException
- if an error occurred while writing to the managed file.Map<String,String> deleteLoggingProperties(Map<String,String> props) throws IOException
props
- all properties to delete within the managed file.IOException
- if an error occurred while writing to the managed file.String getLoggingFileDetails() throws IOException
IOException
- if an error occurred while reading from the managed file.String createZipFile(String sourceDir) throws IOException
sourceDir
- the directory to ZIP.IOException
- if an error occurred while creating the ZIP.Copyright © 2019. All rights reserved.