$LOGMSG (output to the log file)
$LOGMSG outputs a specified message to the log file ASTMESn.LOG.
Syntax
$LOGMSG(message-type,message)
Values
-
message-type
Specifies one of the following message types:
-
E (Error)
Indicates that a severe problem occurred, and the program must be stopped.
-
EW (Warning)
Indicates that a problem occurred and, for example, some functionality cannot be used but the program does not need to be stopped. W is output to the log file as the message type.
-
EI (Information)
Indicates information. I is output to the log file as the message type.
-
-
message
Specifies a constant or variable for the message. If you specify a constant, enclose it in single quotation marks (').
Note
If a message type other than E, EW, or EI is specified, the script will be interrupted.
Example
The following example shows the settings and the execution result when the message type E (error) is specified. As indicated under Execution result, text preceding the message is set automatically by Asset Console. For details about how to read the execution results, see the JP1/IT Desktop Management 2 - Asset Console Configuration and Administration Guide.
[SET_VALUE] MSG = 'Destination E-mail address is not specified.' $LOGMSG ('E', MSG)
- Execution result:
-
0040519212834.673 00000594(00000664) KDAM2G14-E E-mail address is not specified.