Good question. This is kind of a gap. Scripting don't have this capability. You can return with custom errors via:
helper.fail("Message")
You could also write to an incident field as a workaround. It is possible to create a logger field, and append to it as execution occurs.
From the functions themselves, you can certainly do logging with StatusMessage/FunctionError.
------------------------------
Jared Fagel
Cyber Security Analyst
ALLETE Inc.
------------------------------
Original Message:
Sent: Mon January 08, 2024 04:57 AM
From: Maria Czapkowska
Subject: How to use the logging functions in playbooks
When exploring playbooks available online and the documentation I saw that there are log operations that could be used. Does anyone know how they work exactly? I tried using log.info() in my playbooks with a format string as a message, but I didn't see it displayed anywhere in the playbook progress. If the playbook completes without error I know it passed through the spot where the call was made, so why don't I see it? I end up using addNote to see the progress of a playbook when developing, but that feels very messy.
For anyone curious here's the documentation page
------------------------------
Maria Czapkowska
------------------------------