Log Diagnostic Messages From Your Scripts
When you're developing rules for a business object, you can add a print
or println
function to custom Groovy code when you want messages logged by your own script to be written to the diagnostic log.
For example, you might have a Before Update trigger script that calls several object functions. You can add the print
or println
function to your object functions to print a message to the log each time the function is called.
You can now enable logging to see the functions that were triggered based on the messages, as well as any runtime exceptions. Note that you don't need to do anything special to log trigger starts and trigger ends; these actions are always recorded in the logs.