|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlog2.util.PropertiesParser
public class PropertiesParser
This class acts as a parser of a properties file to configure the logger
Constructor Summary | |
---|---|
PropertiesParser()
Create a new instance of PropertiesParser. |
Method Summary | |
---|---|
java.util.Properties |
getProperties()
Get the properties that configure the loggers. |
void |
initialiseChannels(java.util.Hashtable logChannels,
java.util.Hashtable debugChannels)
Initialise the log and debug channels. |
void |
resetChannels(java.util.Hashtable logChannels,
java.util.Hashtable debugChannels)
Reset the log and debug channels. |
void |
writeToFile(java.util.Properties newProps)
Write the properties to the properties file at the default location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesParser() throws java.lang.Exception
java.lang.Exception
- any error.Method Detail |
---|
public java.util.Properties getProperties()
public void initialiseChannels(java.util.Hashtable logChannels, java.util.Hashtable 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.Hashtable logChannels, java.util.Hashtable 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |