LOGEX action


Function
Log the text into the log database.
Declaration
  LOGEX strExpression [LINENO] [PRIORITY prtyExpr_Int]

Parameters
strExpression in Expression of String type - its value will be written into log database (the column Incident). Maximum characters: 200 (a text is cropped from the right).
LINENO in Optional key word. If it is entered, the script line which the action is placed in is to be written to the log database (the column Incident).
prtyExpr_Int in Expression of Int type that determines a priority of storing the log into the log database. Its value must be within the range of _LOG_PRTY_INFO (0) .. _LOG_PRTY_ERROR(5). If it is not, the action generates the error _ERR_RANGE_ERROR.

Description
The action will perform a log into the log database. Text is characterized by value of expression strExpression (in contrast to LOG action).
Example
 BEGIN
REAL _temperature
 _temperature := 1.123
 LOGEX "Temperature=" + %IToStr (_temperature) PRIORITY  _LOG_PRTY_CRITALARM 
 END


Related pages:

Napíšte komentár