|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.log.Config
public final class Config
The configuration for a specific logger
| Constructor Summary | |
|---|---|
Config(ConfigDelegate delegation)
Creates a new confiuration object |
|
| Method Summary | |
|---|---|
String |
dumpLogProperties()
Dump the log properties read from the log property file to a string |
void |
enablePerformanceLog(boolean enable)
Enable/Disable performance logging. |
void |
enableStatisticsLog(boolean enable)
Enable/Disable statistics logging. |
boolean |
equals(Object obj)
Checks whether some other object is "equal to" this one. |
List |
getActiveEntities()
Returns a list of all active (in use) log entities that are available by the file logging mechanisms controlled by this logger. |
String |
getApplicationId()
Return the application name view string that the logs pertain to. |
String |
getConfigName()
Return the application name string that the logs pertain to. |
Date |
getInstantiationTime()
Return the instantion timestamp of the Config object. |
int |
getLogLevel()
Get logging level. |
String |
getLogName()
Return the log name ("AppLog", "SysLog"). |
String |
getLogProperty(String name,
String defaultValue)
Returns the specified log property from the log configuration. |
List |
getReadableEntities()
Returns a list of all readable log entities that are available by the file logging mechanisms controlled by this logger. |
LogEntityReader |
getReader(LogEntity entity)
Returns an entity reader for given log entity. |
List |
getRemoveableEntities()
Returns a list of all removeable log entities that are available by the file logging mechanisms controlled by this logger. |
boolean |
isActiv()
Checks if the configuration is still active. |
boolean |
isPerformanceLog()
Checks if performance logging is active. |
boolean |
isStatisticsLog()
Checks if statistics logging is active. |
void |
removeEntity(LogEntity entity)
Remove a log entity. |
void |
setApplicationControlledTrace(boolean enable,
Thread thread)
Enables/Disables tracing for the specified thread. |
void |
setLogLevel(int logLevel)
Set logging level. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Config(ConfigDelegate delegation)
delegate - A delegate| Method Detail |
|---|
public boolean isActiv()
public Date getInstantiationTime()
throws MissingResourceException
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public String getConfigName()
throws MissingResourceException
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public String getApplicationId()
throws MissingResourceException
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public String getLogName()
throws MissingResourceException
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public String dumpLogProperties()
throws MissingResourceException
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public void setLogLevel(int logLevel)
throws MissingResourceException
This method should not be used by applications. The logging level is set in the log property file.
level - a new logging level
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public int getLogLevel()
throws MissingResourceException
This method should not be used by applications.
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public void enablePerformanceLog(boolean enable)
throws MissingResourceException
This method should not be used by applications. The performance log state is set in the log property file.
enable - enable if true
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public boolean isPerformanceLog()
throws MissingResourceException
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public void enableStatisticsLog(boolean enable)
throws MissingResourceException
This method should not be used by applications. The statistics log state is set in the log property file.
enable - enable if true
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public boolean isStatisticsLog()
throws MissingResourceException
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public void setApplicationControlledTrace(boolean enable,
Thread thread)
throws MissingResourceException
enable - enables/disables tracethread - the thread that is affected
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public String getLogProperty(String name,
String defaultValue)
throws MissingResourceException
name - a property namedefaultValue - a default value
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public boolean equals(Object obj)
throws MissingResourceException
equals in class Objectobj - The reference object with which to compare.
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public List getActiveEntities()
throws MissingResourceException
LogEntity objects
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public List getReadableEntities()
throws MissingResourceException
LogEntity objects
MissingResourceException
public List getRemoveableEntities()
throws MissingResourceException
LogEntity objects
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public void removeEntity(LogEntity entity)
throws MissingResourceException
entity - a log entity
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
public LogEntityReader getReader(LogEntity entity)
throws MissingResourceException
entity - a log entity
MissingResourceException - if the delegate config object does
not exist anymore. Most probably the logger has been undeployed and the
reference to the config's delegate has been released.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||