log()

Enter an information event to the PATROL Event Manager.

Syntax

log(message,[severity])

Parameter

Parameter

Definition

message

text string to be recorded in the PATROL Event Manager Event Diary for an information event

severity

optional text string that specifies the severity of the log message

Description

The log() function generates an Information Event and inserts message into its Event Diary. The event is recorded in PATROL's Event Log. If severity is specified, it is recorded as the severity of the event. The log() function always returns the NULL string. 

The log() function is provided for the purpose of backward compatibility with previous versions of PSL and should not be used to send messages to the Version 3.0 PATROL Event Manager. Use the event_trigger() function (seeevent_trigger()) to send messages to the Version 3.0 PATROL Event Manager.

Example

The following is an example of the log() function:

log("Just Testing . . . ","This is not a real log message");


Was this page helpful? Yes No Submitting... Thank you

Comments