public interface ILogMessage
Modifier and Type | Method and Description |
---|---|
int |
getEvent()
Returns the event code.
|
java.lang.String |
getEventSubType()
Returns the subType of the event for custom participants
|
java.lang.String |
getHeadline()
Returns the simple, one-line description of the message being specified.
|
java.util.Vector |
getProperties()
Returns the properties of this log message.
|
java.lang.Object |
getPropertyValue(java.lang.String name)
Returns the value of one piece of detailed information from the message.
|
int |
getResult()
Returns the message status.
|
void |
maskProperty(java.lang.String name)
Mask a property that it need not be persisted
|
void |
setCustomProperty(java.lang.String name,
java.util.HashMap<java.lang.String,java.lang.String> value)
Sets one piece of detailed custom information into the message.
|
void |
setEvent(int eventCode)
Sets the event code.
|
void |
setHeadline(java.lang.String headline)
Sets a simple, one-line description of the message being specified.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets one piece of detailed information into the message.
|
void |
setResult(int resultCode)
Sets the message status.
|
void setResult(int resultCode)
ILog.LOG_
codes.resultCode
- The message status (for example, success)ISimpleLog.LOG_FAILURE
,
ISimpleLog.LOG_PASS
,
ISimpleLog.LOG_WARNING
,
ISimpleLog.LOG_INFORMATION
int getResult()
ILog.LOG_
codes.ISimpleLog.LOG_FAILURE
,
ISimpleLog.LOG_PASS
,
ISimpleLog.LOG_WARNING
,
ISimpleLog.LOG_INFORMATION
void setEvent(int eventCode)
ILog.EVENT_
codes.eventCode
- The message event (for example, script start)ISimpleLog.EVENT_SCRIPT_START
,
ISimpleLog.EVENT_SCRIPT_END
,
ISimpleLog.EVENT_VP
,
ISimpleLog.EVENT_GENERAL
int getEvent()
ILog.EVENT_
codes.ISimpleLog.EVENT_SCRIPT_START
,
ISimpleLog.EVENT_SCRIPT_END
,
ISimpleLog.EVENT_VP
,
ISimpleLog.EVENT_GENERAL
void setHeadline(java.lang.String headline)
headline
- The simple messagejava.lang.String getHeadline()
void setProperty(java.lang.String name, java.lang.Object value)
name
- The name of the informationvalue
- The value of the informationvoid setCustomProperty(java.lang.String name, java.util.HashMap<java.lang.String,java.lang.String> value)
name
- The name of the informationvalue
- The value of the informationvoid maskProperty(java.lang.String name)
java.lang.Object getPropertyValue(java.lang.String name)
name
- The name of the piece of informationnull
is returned if the name is not found.java.util.Vector getProperties()
java.lang.String getEventSubType()