com.ibm.rational.test.lt.core.logging
Class PDAbstractLog
java.lang.Object
com.ibm.rational.test.lt.core.logging.PDAbstractLog
- All Implemented Interfaces:
- IPDAbstractLog
- Direct Known Subclasses:
- PDExecutionLog, PDLog
public abstract class PDAbstractLog
- extends Object
- implements IPDAbstractLog
Method Summary |
void |
close()
|
protected void |
createAnEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
|
protected void |
formatCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent,
com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
|
protected abstract org.eclipse.hyades.logging.events.cbe.EventFactory |
getEventFactory(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity)
Log a CommonBaseEvent record. |
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens,
String correlationValue)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens,
Throwable exception)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens,
Throwable exception,
String correlationValue)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String correlationValue)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens,
String correlationValue)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens,
Throwable exception)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens,
Throwable exception,
String correlationValue)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
Throwable exception)
|
void |
log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
Throwable exception,
String correlationValue)
|
protected abstract void |
logCommonBaseEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry,
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
|
String |
prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens)
Prepare the message with int tokens. |
String |
prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens)
Prepare a Message. |
protected abstract boolean |
wouldLog(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
int severity)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDAbstractLog
protected PDAbstractLog()
close
public void close()
prepareMessage
public String prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens)
- Prepare a Message. This is accomplished by retrieving the message from the catalog and substituting
the tokens as needed.
- Specified by:
prepareMessage
in interface IPDAbstractLog
- Parameters:
subComponent
- msgCatalogId
- severity
- tokens
-
- Returns:
- String
prepareMessage
public String prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens)
- Prepare the message with int tokens.
- Specified by:
prepareMessage
in interface IPDAbstractLog
- See Also:
IPDAbstractLog.prepareMessage(com.ibm.rational.test.lt.core.logging.ILTSubComponent, java.lang.String, int, int[])
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity)
- Log a
CommonBaseEvent
record.
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
Throwable exception)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens,
Throwable exception)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens,
Throwable exception)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String correlationValue)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
Throwable exception,
String correlationValue)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens,
String correlationValue)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
String[] tokens,
Throwable exception,
String correlationValue)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens,
String correlationValue)
- Specified by:
log
in interface IPDAbstractLog
log
public void log(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
String msgCatalogId,
int severity,
int[] tokens,
Throwable exception,
String correlationValue)
- Specified by:
log
in interface IPDAbstractLog
wouldLog
protected abstract boolean wouldLog(com.ibm.rational.test.lt.core.logging.ILTSubComponent subComponent,
int severity)
createAnEvent
protected void createAnEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
getEventFactory
protected abstract org.eclipse.hyades.logging.events.cbe.EventFactory getEventFactory(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
formatCommonBaseEvent
protected void formatCommonBaseEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent,
com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry)
- Parameters:
commonBaseEvent
- org.eclipse.hyades.logging.events.cbe.CommonBaseEventlogEntry
- com.ibm.rational.test.lt.core.loggin.PDAbstractLog.PDLogEntry
logCommonBaseEvent
protected abstract void logCommonBaseEvent(com.ibm.rational.test.lt.core.logging.PDAbstractLog.PDLogEntry logEntry,
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
© Copyright IBM Corp. 2012. All rights reserved.