public class PropertiesParser
extends java.lang.Object
Constructor and Description |
---|
PropertiesParser()
Create a new instance of PropertiesParser.
|
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getProperties()
Get the properties that configure the loggers.
|
void |
initialiseChannels(java.util.HashMap<java.lang.String,LogChannel> logChannels,
java.util.HashMap<java.lang.String,LogChannel> debugChannels)
Initialise the log and debug channels.
|
void |
resetChannels(java.util.HashMap<java.lang.String,LogChannel> logChannels,
java.util.HashMap<java.lang.String,LogChannel> debugChannels)
Reset the log and debug channels.
|
void |
writeToFile(java.util.Properties newProps)
Write the properties to the properties file at the default location.
|
public PropertiesParser() throws java.lang.Exception
java.lang.Exception
- any error.public java.util.Properties getProperties()
public void initialiseChannels(java.util.HashMap<java.lang.String,LogChannel> logChannels, java.util.HashMap<java.lang.String,LogChannel> debugChannels) throws java.lang.Exception
logChannels
- the log channels object to initialise. Keys are the
logger keys while values are the default channels.debugChannels
- the debug channels object to initialise. Keys are the
logger keys while values are the default channels.java.lang.Exception
- any error.public void resetChannels(java.util.HashMap<java.lang.String,LogChannel> logChannels, java.util.HashMap<java.lang.String,LogChannel> debugChannels) throws java.lang.Exception
logChannels
- the log channels object to initialise. Keys are the
logger keys while values are the default channels.debugChannels
- the debug channels object to initialise. Keys are the
logger keys while values are the default channels.java.lang.Exception
- any error.public void writeToFile(java.util.Properties newProps) throws java.lang.Exception
newProps
- the new set of properties.java.lang.Exception
- any error.