Rule Debug Logging Help Please!

I’m having trouble with debug logging in my rules. I’ve searched the forums and google endlessly and still can’t get it to work, looking for some assistance. I’m fairly new to Openhab…

I’m running openhab in debug mode (start_debug) on Windows.

I added the following line to my logback_debug.xml
<logger name="org.openhab.model.script.tempdebug" level="DEBUG"/>

I created a sample to verify my debugging is working correctly:
rule "temp" logDebug("tempdebug","Temptoohigh Rule start") var timer = 0 when logDebug("tempdebug","Temptoohigh Rule when") system started then logDebug("tempdebug","Temptoohigh Rule then") var timer = 1 end

When checking my openhab log file, I see that the rule is loaded, but no indication that the debug statements are logged. My complete logback_debug file is posted below. Any thoughts on why the logDebug statements for “tempdebug” are not appearing in the log? Thanks!


<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
		<pattern>%d{HH:mm:ss.SSS} [%-5level] [%-30.30logger{36}:%-5line] - %msg%n</pattern>

<appender name="FILE" class="ch.qos.logback.core.FileAppender">
		<pattern>%d{HH:mm:ss.SSS} [%-5level] [%-30.30logger{36}:%-5line] - %msg%n</pattern>

<appender name="EVENTFILE"
	<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
		<!-- weekly rollover and archiving -->

		<!-- maximum number of archive files to keep -->
		<pattern>%d{yyyy-MM-dd HH:mm:ss} - %msg%n</pattern>

<logger name="runtime.busevents" level="INFO" additivity="false">
	<appender-ref ref="EVENTFILE" />
	<appender-ref ref="STDOUT" />

<logger name="org.openhab" level="DEBUG" />
<logger name="org.openhab.model.script.tempdebug" level="DEBUG"/>
<logger name="org.openhab.binding.knx" level="DEBUG" />
<logger name="org.openhab.binding.onewire" level="INFO" />
<logger name="org.openhab.ui" level="INFO" />
<logger name="org.openhab.ui.webapp" level="DEBUG" />
<logger name="org.openhab.ui.webapp.internal.servlet" level="INFO" />
<logger name="" level="INFO" />
<logger name="org.openhab.core.autoupdate" level="DEBUG" />
<logger name="org.openhab.core.persistence.internal" level="TRACE" />
<logger name="org.openhab.core.transform.internal.service.MapTransformationService" level="INFO" />
<logger name="org.openhab.binding.vdr" level="DEBUG" />
<logger name="org.openhab.model.core.internal.folder" level="INFO" />
<logger name="" level="DEBUG" />

<logger name="OSGi" level="WARN" />
<logger name="org.eclipse.jetty" level="WARN" />

<logger name="" level="DEBUG" />

<!-- temporary workaround for -->
<logger name="javax.jmdns.impl.DNSIncoming" level="ERROR"/>

<!-- temporary workaround for -->
<logger name="OSGi" level="OFF" />

<logger name="" level="WARN" />

<root level="ERROR">
	<appender-ref ref="FILE" />
	<appender-ref ref="STDOUT" />
	<appender-ref ref="MYAUTOMATION" />


This rule won’t work at all, because the rule is incorrect. a rule consists of 2 sections, the first one is to tell the triggers, the second one is what will the rule do, so:

rule "temp"                                    // Name of rule, has to be unique
                                               // don't put anything in here, exept comments ;)
when                                           // which triggers to use
    system started                             // trigger then rule when system was started
                                               // don't put anything in here either, exept comments and other triggers ;)
then                                           // what to do when rule was triggered
    logDebug("tempdebug","temp rule executed") // log when in debugging mode
                                               // do something
end                                            // end of rule

This rule should put a log line to openhab.log at startup, if nothing else is configured (but only in debugging mode, i.e. if started with start_debug.bat)