This message continues from a previous forum thread:
I thought that because of thread drift I should start a new topic. Good idea? Bad idea?
I am still trying (unsuccessfully) to log some debug information.
I am working from this documentation page:
I executed the following console commands
log:set DEBUG org.openhab.binding.exec log:set DEBUG org.eclipse.smarthome.script.logtest.rules
and then loaded the file “logtest.rules” which contains a single rule:
//Turn on the wemo mini switch when openhab2 launches rule "first rule" when System started then val input = executeCommandLine("C:\\head@@-n@@1@@C:\\openhabinput.txt", 5000)//no complaints logDebug("logtest", "this is a log entry of type debug") Switch1_state.sendCommand(ON) end
The rule is triggering (as evidenced by the switch turning on) but I don’t see any logging information either in the console nor in the log files.
- Are the above console commands correct?
- I used the name of the .rules file as the 1st argument to logDebug. Is this correct?
- am I doing something else wrong?
Thanks in advance,