public class SimpleLogAdapter extends java.lang.Object implements ISimpleLog
DISABLE_LOGGING, EVENT_APPLICATION_END, EVENT_APPLICATION_START, EVENT_APPLICATON_ACTION, EVENT_CALL_SCRIPT, EVENT_CONFIGURATION, EVENT_CUSTOM, EVENT_EXPORT, EVENT_GENERAL, EVENT_SCRIPT_END, EVENT_SCRIPT_START, EVENT_TIMER_END, EVENT_TIMER_START, EVENT_VP, LOG_DISABLE_GUI_ACTION, LOG_DISABLE_GUI_SNAPSHOT_ACTION, LOG_ENABLE_GUI_ACTION, LOG_ENABLE_GUI_SNAPSHOT_ACTION, LOG_FAILURE, LOG_FAILURES, LOG_FAILURES_WARNINGS, LOG_FAILURES_WARNINGS_PASS, LOG_FAILURES_WARNINGS_PASS_INFO, LOG_INFORMATION, LOG_PASS, LOG_WARNING| Constructor and Description |
|---|
SimpleLogAdapter()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the log, releasing any resources.
|
ILogMessage |
createMessage()
Create an instance of a log message.
|
ILogMessage |
createMessage(int resultCode,
int eventCode,
java.lang.String headline)
Create an instance of a log message specifying the status, event and note.
|
void |
open()
Opens the log
|
boolean |
openLogViewer()
The callback function to open the viewer for the log.
|
void |
write(ILogMessage message)
Write a message into the log.
|
void |
write(int resultCode,
int eventCode,
java.lang.String note)
Write a message into the log.
|
public void open()
throws LogException
open in interface ISimpleLogLogExceptionpublic void close()
close in interface ISimpleLogpublic void write(int resultCode,
int eventCode,
java.lang.String note)
write in interface ISimpleLogresultCode - One of the LOG_ codes.eventCode - One of the EVENT_ codes.note - Simple (one line) description of the message
being specified.ISimpleLog.LOG_FAILURE,
ISimpleLog.LOG_PASS,
ISimpleLog.LOG_WARNING,
ISimpleLog.LOG_INFORMATION,
ISimpleLog.EVENT_SCRIPT_START,
ISimpleLog.EVENT_SCRIPT_END,
ISimpleLog.EVENT_VP,
ISimpleLog.EVENT_CALL_SCRIPT,
ISimpleLog.EVENT_APPLICATION_START,
ISimpleLog.EVENT_APPLICATION_END,
ISimpleLog.EVENT_TIMER_START,
ISimpleLog.EVENT_TIMER_END,
ISimpleLog.EVENT_CONFIGURATION,
ISimpleLog.EVENT_GENERALpublic void write(ILogMessage message)
write in interface ISimpleLogmessage - The message (i.e. resultCode, eventCode,
note, and details)ISimpleLog.LOG_FAILURE,
ISimpleLog.LOG_PASS,
ISimpleLog.LOG_WARNING,
ISimpleLog.LOG_INFORMATION,
ISimpleLog.EVENT_SCRIPT_START,
ISimpleLog.EVENT_SCRIPT_END,
ISimpleLog.EVENT_VP,
ISimpleLog.EVENT_CALL_SCRIPT,
ISimpleLog.EVENT_APPLICATION_START,
ISimpleLog.EVENT_APPLICATION_END,
ISimpleLog.EVENT_TIMER_START,
ISimpleLog.EVENT_TIMER_END,
ISimpleLog.EVENT_CONFIGURATION,
ISimpleLog.EVENT_GENERALpublic ILogMessage createMessage()
createMessage in interface ISimpleLogpublic ILogMessage createMessage(int resultCode, int eventCode, java.lang.String headline)
createMessage in interface ISimpleLogresultCode - One of the LOG_ codes.eventCode - One of the EVENT_ codes.headline - Simple (one line) description of the message
being specified.public boolean openLogViewer()
openLogViewer in interface ISimpleLog