Loading the Kaya editor…
log.info(message: "Starting the example")
let total = 0
for number in range(1, 4) {
total = total + number
log.debug(message: "Added {{number}}; total is {{total}}")
}
log.warn(message: "This is an example warning, not a failed run")
"Total: {{total}}"
"Open Logs → Diagnostics to see the diagnostic messages."