2022.2

Table Of Contents
View error messages in the Services Console while PlanetPress Workflow is in Run mode by choosing
Tools | Services | Service Console. In the Service Console, error messages appear with colors that cor-
respond to the message level.
Level Type Text Color in Service Console
1 Error Red
2 Warning Orange
3 Information Black
4 Debug Grey
Arguments
Message
A string representing the message that is logged in the log file. Note that the text of the message must
use the locale encoding of the system where the PlanetPress Workflow software will be running, oth-
erwise it will be unreadable.
Level
An integer between 1 and 4, specifying the severity level of the error message. Set message levels as
follows.
Level Description
1 The message is logged as an Error in the log file.
2 The message is logged as a Warning in the log file.
3 The message is logged as Information in the log file.
4 The message only appears when the application runs in Debug mode.
Examples
In the following example, log() will write an information entry in the watch log that says "this is a log"
VBScript
Watch.Log "this is a log", 3
JavaScript
Watch.Log("this is a log", 3);
Python
Watch.Log("this is a log",3)
Page 143