Workflow scripted elements, actions, and policies require scripting of common logging tasks. You can cut, paste, and adapt these examples into your scripted elements.

Persistent Logging

The following JavaScript example creates persistent log entries.

Server.log("This is a persistant message", "enter a long description here"); 
Server.warn("This is a persistant warning", "enter a long description here"); 
Server.error("This is a persistant error", "enter a long description here");

Non-Persistent Logging

The following JavaScript example creates non-persistent log entries.

System.log("This is a non-persistant log message");
System.warn("This is a non-persistant log warning");
System.error("This is a non-persistant log error");