OnMessage Event
Fires when a log file entry is added.
Syntax
SiteKiosk.Logfile.OnMessage = handler
|
Parameters
sequenceno |
Long value that contains the ID. |
time |
Date value that contains the time. |
utcoffset |
Long value that contains the utc offset. |
awtype |
Long value that contains the type. |
awlevel |
String value that contains the level. |
facility |
String value that contains the facility. |
text |
String value that contains the text. |
Remarks
See the LogMessage object for further information about the parameters.
Use the DateTimeFormatter object to format the date.
The object that caused the event can be referenced in the event function using "this".
Examples
The following example shows information about every log file entry.
<div id="id_log"></div>
<SCRIPT TYPE="text/javascript">
window.external.InitScriptInterface();
SiteKiosk.Logfile.OnMessage = OnMessage;
function OnMessage(seq, time, utcoff, awtype, awlevel, facility, text)
{
id_log.innerHTML = "SequenceNo: " + seq +
" Time: " + time +
" UTC offset: " + utcoff +
" awtype: " + awtype +
" awlevel: " + awlevel +
" facility: " + facility +
" text: " + text;
}
</SCRIPT>
|
Applies to
SiteKiosk v6.0 (and later versions).
Back to top