|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.rational.rpe.common.log.RPELog
public class RPELog
Provides an abstraction to logging abilities in RPE. There is a single instance of RPELog per application.
This is an internal class. Do not use directly. Use the IRPELogger obtained from AppUtils.getLogger() for logging purposes.
| Nested Class Summary | |
|---|---|
static class |
RPELog.Level
The various severities of log messages |
| Method Summary | |
|---|---|
static RPELog |
getInstance()
Access to the singleton object |
java.lang.String |
getMessage(com.ibm.rational.rpe.common.log.IMessages messages,
java.lang.String id,
java.lang.String[] argvs)
Gives the message for the error ID minus the CRRPE prefix and ID |
java.lang.String |
getMessageForUI(java.lang.String id,
java.lang.String[] argvs,
java.lang.Throwable t,
com.ibm.rational.rpe.common.log.IMessages messages)
Returns a message in the form of: CRRPE+id+severity+message |
void |
logMessage(java.lang.String id,
java.lang.String[] argvs,
java.lang.Throwable t)
Logs an RPE message by using the log system in the application. |
void |
logMessage(java.lang.String id,
java.lang.String[] argvs,
java.lang.Throwable t,
com.ibm.rational.rpe.common.log.IRPELogFilter filter,
boolean compareContent)
Builds and logs the message from the provided components |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RPELog getInstance()
public void logMessage(java.lang.String id,
java.lang.String[] argvs,
java.lang.Throwable t,
com.ibm.rational.rpe.common.log.IRPELogFilter filter,
boolean compareContent)
id - - the ID of the message. This is an internal ID and not a string table idargvs - - optional arguments as required by each message (optional)t - - the exception to log (optional)filter - - a filter to use when logging the message. An example of a useful filter is one that avoids duplicated error messagescompareContent - - an argument for the log filter
public void logMessage(java.lang.String id,
java.lang.String[] argvs,
java.lang.Throwable t)
public java.lang.String getMessage(com.ibm.rational.rpe.common.log.IMessages messages,
java.lang.String id,
java.lang.String[] argvs)
messages - id - argvs -
public java.lang.String getMessageForUI(java.lang.String id,
java.lang.String[] argvs,
java.lang.Throwable t,
com.ibm.rational.rpe.common.log.IMessages messages)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||