Script functions reference > Script functions in alphabetical order > L > Log

Log
Syntax
Log(num_loglevel, str);
num_loglevel 
0 corresponds to log level Severe error messages in the Platform.
1 corresponds to log level All error messages in the Platform.
2-3 corresponds to log level All error and warning messages in the Platform.
4-8 corresponds to log level All error, warning and information messages in the Platform.
9 corresponds to log level All error, warning and extended information messages in the Platform.
The string is appended only if the log level specified in the Platform is greater than, or equal to, num_loglevel.
str 
Description
Appends a string to the log file.
Returns
0
-1
Example
log(9,"The number is:"+$inv_nr);
Result:
The string "The number is:123456" is appended to the log file only if the log level specified in the Platform is All error, warning and extended information messages.
OpenText StreamServe 5.6 Updated: 2013-03-01