Log operations

The log operations can be used with any Object Type for the script. It provides the helper methods for returning messages to display in the action status.

Type log. to access the helper methods, which are described in the following table.

Operation Description
info(message)

Adds an action status message at the INFO level.

warn(message)

Adds an action status message at the WARN level.

error(message)

Adds an action status message at the ERROR level.

debug(message)

Adds a message at the DEBUG level. Only returned when the script is being debugged. These messages are not persisted as action status messages.

To aid troubleshooting, the log operations in a script are also output to cases-scripting-log-tailer in the isc-cases-application pod. This also applies to scripts executed by playbooks, rules, and workflows. The log output is filtered by the logging level, which you can configure, as described in Changing the logging level.