public class MessageLogEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
MessageLogEvent(java.sql.Timestamp time,
java.lang.String threadName,
IOutputManager outputMgr,
ECMessage msg,
java.lang.String clsName,
java.lang.String mtdName,
java.lang.Object[] params)
Constructor for MessageLogEvent.
|
MessageLogEvent(java.sql.Timestamp time,
java.lang.String threadName,
java.lang.String uniqueClientId,
IOutputManager outputMgr,
ECMessage msg,
java.lang.String clsName,
java.lang.String mtdName,
java.lang.Object[] params)
Constructor for MessageLogEvent.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createMessageBody()
Creates the message body.
|
java.lang.String |
getCompactMessageBody()
Gets the message body in compact format.
|
java.lang.Throwable |
getException()
Gets the exception of the message.
|
java.lang.String |
getMessageBody()
Builds the message body.
|
void |
print()
Print out the message text in specified output manager
|
void |
setException(java.lang.Throwable newException)
Sets the exception.
|
public static final java.lang.String COPYRIGHT
public MessageLogEvent(java.sql.Timestamp time, java.lang.String threadName, IOutputManager outputMgr, ECMessage msg, java.lang.String clsName, java.lang.String mtdName, java.lang.Object[] params)
time
- the timestamp of the log entrythreadName
- the thread that message is generated byoutputMgr
- output device to write the logsmsg
- the message objectclsName
- class name that generates the messagemtdName
- method name that generates the messageparams
- the list of parameters that will be substituted into the message textpublic MessageLogEvent(java.sql.Timestamp time, java.lang.String threadName, java.lang.String uniqueClientId, IOutputManager outputMgr, ECMessage msg, java.lang.String clsName, java.lang.String mtdName, java.lang.Object[] params)
time
- the timestamp of the log entrythreadName
- the thread that message is generated byuniqueClientId
- the unique Id to represent the client; used to debug double click problemoutputMgr
- output device to write the logsmsg
- the message objectclsName
- class name that generates the messagemtdName
- method name that generates the messageparams
- the list of parameters that will be substituted into the message textpublic java.lang.String createMessageBody()
public java.lang.String getCompactMessageBody()
public java.lang.Throwable getException()
public java.lang.String getMessageBody()
public void setException(java.lang.Throwable newException)
newException
- exception object associated to the messagepublic void print()