I would like to display value of a variable in the log file but only get an empty space in the log file.
My simple test rule:
rule "Logging var every 5 sec"
when
Time cron "*/5 * * * * ?"
then
var temp = 0.0
logInfo("","temp=",temp)
logInfo("","temp=%1$.1f°C",temp)
end
…and my log output
2019-01-24 08:58:55.034 [INFO ] [org.eclipse.smarthome.model.script. ] - temp=
2019-01-24 08:58:55.041 [INFO ] [org.eclipse.smarthome.model.script. ] - temp=%1$.1f°C
What is wrong?
Thanks.