|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.core.logging.LoggingRegistry
public class LoggingRegistry
This singleton class contains the logging registry. It's a hash-map containing the hierarchy for a certain UUID that is generated when a job, job-entry, transformation or step is being created. With it, you can see for each log record to which step-mapping-xform-entry-job-job hiearchy it belongs.
Method Summary | |
---|---|
String |
dump(boolean includeGeneral)
|
LoggingObjectInterface |
findExistingLoggingSource(LoggingObjectInterface loggingObject)
See if the registry already contains the specified logging object. |
static LoggingRegistry |
getInstance()
|
Date |
getLastModificationTime()
|
List<String> |
getLogChannelChildren(String parentLogChannelId)
In a situation where you have a job or transformation, you want to get a list of ALL the children where the parent is the channel ID. |
LoggingObjectInterface |
getLoggingObject(String logChannelId)
Get the logging source object for a certain logging id |
Map<String,LoggingObjectInterface> |
getMap()
|
String |
registerLoggingSource(Object object)
This methods registers a new logging source, stores it in the registry. |
void |
removeIncludingChildren(String logChannelId)
Removes the logging registry entry and all its children from the registry. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LoggingRegistry getInstance()
public String registerLoggingSource(Object object)
object
- The logging sourceint
- The logging level for this logging source
public LoggingObjectInterface findExistingLoggingSource(LoggingObjectInterface loggingObject)
loggingObject
- The logging object to verify
public LoggingObjectInterface getLoggingObject(String logChannelId)
logChannelId
- the logging channel id to look for
public Map<String,LoggingObjectInterface> getMap()
public List<String> getLogChannelChildren(String parentLogChannelId)
parentLogChannelId
- The parent log channel ID
public Date getLastModificationTime()
public String dump(boolean includeGeneral)
public void removeIncludingChildren(String logChannelId)
logChannelId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |