Debug Logging in JS Rule

The default logger name consists of the prefix org.openhab.automation.script and the script’s individual part .file.filename or .ui.ruleUID.

For a UI rule named abc the logger name would be org.openhab.automation.script.ui.abc.

Using

log:set DEBUG org.openhab.automation.script.ui.abc

should enable debug logging for this rule.