Skip to main content
Skip table of contents

WriteLog

Purpose

Writes a message to the event log.


Parameters

Parameter: type
Type: string
Description: This is a string that defines the type of event like "Error" or "Info".  It can be anything you like.  Common message types are "Info","Warning", and "Error".

Parameter: message
Type: string
Description: This is the text to be displayed in the log, like a descriptive error message.


Returns

None


Example

Sample Code

VB
Sub Main()
	hs.WriteLog "Error", "An error has occurred in my script!"

End Sub


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.