I have been using Rules DSL up until now, and had my logging configured as per the following example:
logDebug("shelly_uni", "UPS Batt Voltage Was: " + upsBattVoltagePrevious.toString())
logDebug("shelly_uni", "UPS Batt Voltage Now: " + upsBattVoltageNew.toString())
This will not show any logging until the following command is issued:
log:set DEBUG org.openhab.core.model.script.shelly_uni
Is there any way to achieve a similar result using Blockly? It appears that all blockly logs are issued under the package org.openhab..automation.script.ui
with a subpackage of the rule name.
10:29:20.670 [ERROR] [nhab.automation.script.ui.Watts_to_VA] - Raw Value of ShellyEM_UPS_Watt: 404.36 W
10:29:20.670 [ERROR] [nhab.automation.script.ui.Watts_to_VA] - Raw Value of ShellyEM_UPS_PowerFactor: -0.86
10:29:20.671 [ERROR] [nhab.automation.script.ui.Watts_to_VA] - Updated Value of ShellyEM_UPS_PowerFactor: -0.86
10:29:20.671 [ERROR] [nhab.automation.script.ui.Watts_to_VA] - Calculated VA with UoM value is: -470.18604651162790697674418604651145864 VA
I tried setting:
log:set INFO org.openhab.automation.script.ui
however the logs still display in the logs
openhab> log:list
Logger │ Level
────────────────────────────────────────────────────────┼──────
ROOT │ WARN
javax.jmdns │ ERROR
javax.mail │ ERROR
openhab.event │ INFO
openhab.event.AddonEvent │ ERROR
openhab.event.ChannelDescriptionChangedEvent │ ERROR
openhab.event.GroupStateUpdatedEvent │ ERROR
openhab.event.InboxUpdatedEvent │ ERROR
openhab.event.ItemAddedEvent │ ERROR
openhab.event.ItemChannelLinkAddedEvent │ ERROR
openhab.event.ItemChannelLinkRemovedEvent │ ERROR
openhab.event.ItemRemovedEvent │ ERROR
openhab.event.ItemStateEvent │ ERROR
openhab.event.ItemStateUpdatedEvent │ ERROR
openhab.event.RuleAddedEvent │ ERROR
openhab.event.RuleRemovedEvent │ ERROR
openhab.event.RuleStatusInfoEvent │ ERROR
openhab.event.StartlevelEvent │ ERROR
openhab.event.ThingAddedEvent │ ERROR
openhab.event.ThingRemovedEvent │ ERROR
openhab.event.ThingStatusInfoEvent │ ERROR
openhab.event.ThingUpdatedEvent │ ERROR
org.apache.cxf.jaxrs.sse.SseEventSinkImpl │ ERROR
org.apache.cxf.phase.PhaseInterceptorChain │ ERROR
org.apache.karaf.jaas.modules.audit │ INFO
org.apache.karaf.kar.internal.KarServiceImpl │ ERROR
org.apache.karaf.shell.ssh.SshUtils │ ERROR
org.apache.karaf.shell.support │ OFF
org.apache.sshd │ ERROR
org.eclipse.lsp4j │ OFF
org.jupnp │ ERROR
org.openhab │ INFO
org.openhab.automation.script.ui │ INFO
org.openhab.binding.hue.internal.connection.Clip2Bridge │ TRACE
org.openhab.binding.paradoxalarm │ INFO
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime │ OFF
su.litvak.chromecast.api.v2.Channel │ ERROR
There is no entry for org.openhab.automation.script.ui
until I issue the log:set
command, so it appears that is defined differently maybe?
Any suggestions and advise appreciated.
Mark