The default logger name consists of the prefix
org.openhab.automation.scriptand the script’s individual part.file.filenameor.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.