|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.log.impl.ConfigDelegate
public final class ConfigDelegate
The configuration for a specific logger.
| Constructor Summary | |
|---|---|
ConfigDelegate(Log logger,
String cfgName,
LogProperties logProperties)
Creates a new confiuration object. |
|
| Method Summary | |
|---|---|
String |
dumpLogProperties()
Dump the log properties read from the log property file to. |
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. |
Log |
getLogger()
Returns the associated logger. |
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 |
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 ConfigDelegate(Log logger,
String cfgName,
LogProperties logProperties)
logger - The associated loggercfgName - The configuration namelogProperties - The log properties| Method Detail |
|---|
public Date getInstantiationTime()
public String getConfigName()
public String getApplicationId()
public String getLogName()
public String dumpLogProperties()
public void setLogLevel(int logLevel)
This method should not be used by applications. The logging level is set in the log property file.
level - - a new logging levelpublic int getLogLevel()
This method should not be used by applications.
public void enablePerformanceLog(boolean enable)
This method should not be used by applications. The performance log state is set in the log property file.
enable - enable if truepublic boolean isPerformanceLog()
public void enableStatisticsLog(boolean enable)
This method should not be used by applications. The statistics log state is set in the log property file.
enable - enable if truepublic boolean isStatisticsLog()
public void setApplicationControlledTrace(boolean enable,
Thread thread)
enable - enables/disables tracethread - the thread that is affected
public String getLogProperty(String name,
String defaultValue)
name - a property namedefaultValue - a default value
public boolean equals(Object obj)
equals in class Objectobj - The reference object with which to compare.
public List getActiveEntities()
LogEntity objectspublic List getReadableEntities()
LogEntity objectspublic List getRemoveableEntities()
LogEntity objectspublic void removeEntity(LogEntity entity)
String - an entity namepublic LogEntityReader getReader(LogEntity entity)
String - an entity namepublic Log getLogger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||