You can log information in any Orchestrator script (workflow, policy, or action). This information has types and levels. The type can be either persistent or non-persistent. The level can be DEBUG, INFO, WARNING, and ERROR.

Creating Persistent and Non-Persistent Logs

Log Level

Persistent Type

Non-Persistent Type

DEBUG

Server.debug("short text", "long text");

N/A

INFO

Server.log("short text", "long text");

System.log("text");

WARNING

Server.warn("short text", "long text");

System.warn("text");

ERROR

Server.error("short text", "long text");

System.error("text");

Persistent logs (server logs) track past workflow run logs and are stored in the Orchestrator database. To avoid increasing the database infinitely, specify the number of logs stored per element (workflows and policies) in the Orchestrator configuration interface. If you increase the default value of 50MB, the query requires more space and time. To view server logs, you must select a workflow, a completed workflow run, or policy and click the Events tab in the Orchestrator client.

When you use a non-persistent log (system log) in your scripting, the Orchestrator server notifies all running Orchestrator applications about this log, but this information is not stored. When the application is restarted, the log information is lost. Non-persistent logs are used for debugging purposes or for live information. To view system logs, you must select a completed workflow run in the Orchestrator client and click Logs on the Schema tab.