Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

LOGEX action


Function
Log the text into the log database.


Declaration


Blok kódu
languageesl
themeConfluence
  LOGEX strExpression [LINENO] [PRIORITY prtyExpr_Int]


Parameters


strExpressioninExpression of the String type - its value will be written into the log database (the column Incident). Maximum characters: 200 (a text is cropped from the right).
LINENOinOptional key wordkeyword. 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_IntinExpression of the Int type that which 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


Blok kódu
languageesl
themeRDark
 BEGIN
REAL _temperature
 _temperature := 1.123
 LOGEX "Temperature=" + %IToStr (_temperature) PRIORITY  _LOG_PRTY_CRITALARM 
 END



Info
titleRelated pages:

Script actions
LOG
READLOG