Visara Master Console Center Scripting Guide User Manual
Page 145
Chapter 5 Script Commands
Scripting Guide
145
LOG
Syntax:
LOG( %LogType, $Message[, %Status])
Description:
Enters a message in a log.
Action:
The message is entered into the specified log file and displayed on the
appropriate log window.
Parameters:
%LogType. Numeric expression. Determines the log into which the
messages are entered, as follows.
Constant
LOG_CHAN
LOG_CPU
LOG_EXEC
LOG_FLT
LOG_UNIT
LOG_SW
Description
Channel messages log
CPU messages log
MCC execution messages log
Filtered messages log
I/O Unit messages log
Software messages log
$Message. String expression. The message to enter in the log file.
The maximum number of characters per message is 80; extra
characters are truncated.
%Status. Numeric expression. Optional. Determines the message
color for display purposes. If not specified, the default status is
STATUS_NORMAL.
Returns:
N/A.
Notes:
1. Messages logged to the Filtered messages log are also displayed on
the Filtered Messages window.
2. Messages logged to the execution messages log are also displayed
on the Execution Log Display.
Example:
LOG( LOG_FLT, “Shutdown started”, STATUS_INPROCESS)
$MsgText := “This is a message”
LOG( LOG_EXEC, $MsgText + “ into the execution log”)
See Also:
N/A