|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.afp.log.LoggerProperties
It is a logical representation of a Logger and its properties. All the needed attributes of a Logger are grouped together. Any custom property can also be added to the Logger.
Constructor Summary | |
LoggerProperties(java.lang.String loggerInstanceName,
java.lang.String logWriterInstanceName)
Creates a new LoggerProperties instance with the InstanceName specified in loggerInstanceName. |
Method Summary | |
void |
addCustomProperty(java.lang.String key,
java.lang.String value)
This method can be used to add any other property which the user may need to use. |
java.lang.String |
getClassName()
Gets the Logger implementation class that is being used by the Logger. |
java.util.Properties |
getCustomProperties()
Returns custom properties that have been set for the Logger. |
java.lang.String |
getCustomProperty(java.lang.String key)
The getCustomProperty method is used to retreive a custom property that
has been set for the Logger. |
java.lang.String |
getInstanceName()
Method to get the LoggerInstanceName. |
int |
getLogLevel()
To get the logging level of the Logger. |
java.lang.String |
getWriterInstanceName()
Method to get the LogWriterInstanceName. |
void |
removeCustomProperty(java.lang.String key)
This method removes the custom property which has the key name same as that of the argument. |
void |
setClassName(java.lang.String loggerClassName)
To set the Logger implementation class to be used by the Logger. |
void |
setLogLevel(int loggingLevel)
To set the logging level of the Logger. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoggerProperties(java.lang.String loggerInstanceName, java.lang.String logWriterInstanceName)
LoggerProperties
instance with the InstanceName specified in loggerInstanceName.loggerInstanceName
- a String
valueMethod Detail |
public java.lang.String getInstanceName()
String
valuepublic java.lang.String getWriterInstanceName()
String
valuepublic java.lang.String getClassName()
String
valuepublic void setClassName(java.lang.String loggerClassName)
LoggerImpl
will used as the implementing class.loggerClassName
- a String
valuepublic int getLogLevel()
int
valuepublic void setLogLevel(int loggingLevel)
loggingLevel
- an int
valuepublic void addCustomProperty(java.lang.String key, java.lang.String value)
key
- a String
valuevalue
- a String
valuepublic void removeCustomProperty(java.lang.String key)
key
- a String
valuepublic java.lang.String getCustomProperty(java.lang.String key)
getCustomProperty
method is used to retreive a custom property that
has been set for the Logger.key
- a String
valueString
valuepublic java.util.Properties getCustomProperties()
Properties
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |