Script functions reference > Script functions in alphabetical order > P > PreProcLog

PreProcLog
Syntax
PreProcLog(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
During the pre-process phase, appends a string to the log file.
Returns
0
-1
Example
preproclog(1,"Jan 2000");
If the StreamServer was started with loglevel=1 or greater, the string "Jan 2000" is added to the log.
OpenText StreamServe 5.6 Updated: 2013-03-01