java.lang.Object | +--com.ibm.commerce.ras.LogEvent | +--com.ibm.commerce.ras.MethodLogEvent
MethodLogEvent class is used to format the message text for Tracing service.
Field Summary | |
---|---|
protected
java.lang.String |
className |
protected
java.lang.String |
clientId |
protected
java.lang.String |
componentName |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
protected
java.lang.String |
message |
protected
java.lang.String |
methodName |
Constructor Summary | |
---|---|
MethodLogEvent(java.sql.Timestamp time, java.lang.String thread,
IOutputManager outputMgr,
java.lang.String aClassName, java.lang.String aMethodName,
java.lang.String text) Constructor for MethodLogEvent. | |
MethodLogEvent(java.sql.Timestamp time, java.lang.String thread,
IOutputManager outputMgr,
java.lang.String aComponentName, java.lang.String aClassName,
java.lang.String aMethodName, java.lang.String text) Constructor for MethodLogEvent. | |
MethodLogEvent(java.sql.Timestamp time, java.lang.String thread,
java.lang.String uniqueClientId,
IOutputManager outputMgr,
java.lang.String aClassName, java.lang.String aMethodName,
java.lang.String text) Constructor for MethodLogEvent. | |
MethodLogEvent(java.sql.Timestamp time, java.lang.String thread,
java.lang.String uniqueClientId,
IOutputManager outputMgr,
java.lang.String aComponentName, java.lang.String aClassName,
java.lang.String aMethodName, java.lang.String text) Constructor for MethodLogEvent. |
Method Summary | |
---|---|
protected
java.lang.String |
createCompactMessageHeader() Create the message header in compact format |
java.lang.String |
createMessageBody() Creates the message body. |
protected
java.lang.String |
createMessageFooter() Create the message footer |
protected
java.lang.String |
createMessageHeader() Create the message header |
protected
java.lang.String |
doCreateHeaderExtention() Create header extention |
java.lang.String |
getCompactMessageBody() Gets the message body in compact format. |
protected
java.lang.String |
getMessage() Retrieve the message text |
java.lang.String |
getMessageBody() Gets the message body in detailed format. |
protected
boolean |
isCompactFormat() Check if the compact format is used |
void |
print() Print out the message text in specified output manager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String componentName
protected java.lang.String className
protected java.lang.String clientId
protected java.lang.String methodName
protected java.lang.String message
Constructor Detail |
---|
public MethodLogEvent(java.sql.Timestamp time, java.lang.String thread, IOutputManager outputMgr, java.lang.String aClassName, java.lang.String aMethodName, java.lang.String text)
time
- the timestamp of the trace entrythread
- the thread that entry is generated byoutputMgr
- output device to write the logsaClassName
- class name that generates the entryaMethodName
- method name that generates the entrytext
- the plain text that will be shown in the log
filepublic MethodLogEvent(java.sql.Timestamp time, java.lang.String thread, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName, java.lang.String text)
time
- the timestamp of the trace entrythread
- the thread that entry is generated byoutputMgr
- output device to write the logsaComponentName
- trace component the entry belongs toaClassName
- class name that generates the entryaMethodName
- method name that generates the entrytext
- the plain text that will be shown in the log
filepublic MethodLogEvent(java.sql.Timestamp time, java.lang.String thread, java.lang.String uniqueClientId, IOutputManager outputMgr, java.lang.String aClassName, java.lang.String aMethodName, java.lang.String text)
time
- the timestamp of the trace entrythread
- the thread that entry is generated byuniqueClientId
- the unique Id to represent the client; used
to debug double click problemoutputMgr
- output device to write the logsaClassName
- class name that generates the entryaMethodName
- method name that generates the entrytext
- the plain text that will be shown in the log
filepublic MethodLogEvent(java.sql.Timestamp time, java.lang.String thread, java.lang.String uniqueClientId, IOutputManager outputMgr, java.lang.String aComponentName, java.lang.String aClassName, java.lang.String aMethodName, java.lang.String text)
time
- the timestamp of the trace entrythread
- the thread that entry is generated byuniqueClientId
- the unique Id to represent the client; used
to debug double click problemoutputMgr
- output device to write the logsaComponentName
- trace component the entry belongs toaClassName
- class name that generates the entryaMethodName
- method name that generates the entrytext
- the plain text that will be shown in the log
fileMethod Detail |
---|
public java.lang.String createMessageBody()
createMessageBody
in class
com.ibm.commerce.ras.LogEvent
public java.lang.String getCompactMessageBody()
public java.lang.String getMessageBody()
protected java.lang.String createCompactMessageHeader()
protected java.lang.String createMessageFooter()
protected java.lang.String createMessageHeader()
protected java.lang.String doCreateHeaderExtention()
protected java.lang.String getMessage()
protected boolean isCompactFormat()
public void print()