Logging

Tags: #<Tag:0x00007efec5c70388>

I configured OH2 to log rules to a file called rules following the documentation for OH2. Now my loginfo() messages directed to “rules” are showing up in both the openhab.log and rules.log file. Did I miss something or is that a feature? example:

logInfo(“Rules”, "rule:4:01AM: "+ currentHS_ + currentBrightness)

What is your log4j.logger.blah blah blah line for your rules logger look like?

It is a feature.

Following command in your org.ops4j.pax.logging.cfg should get rid of the entries in opnehab.log:

log4j.additivity.org.eclipse.smarthome.model.script.Rules  = false

That worked. Thanks