Rules logs not in the files, only in console

  • Platform information:
    • Hardware: RP3+
    • OS: openhabian
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: 2.4.0

I’m trying to log some rules I created, I can see the logs in the openhab-cli console but not in openhab.log or events.log.
I need it there to test some long time rools ansd so.

I set the ‘org.eclipse.smarthome.model.script’ to debug in the console and its seems ok

openhab> log:get org.eclipse.smarthome.model.script
DEBUG

Also tried to add to org.ops4j.pax.logging.cfg
log4j2.logger.smarthome.model.script.name = org.eclipse.smarthome.model.script
log4j2.logger.smarthome.model.script.level = ALL

What I’m missing?

You’re using logInfo(), logDebug(), etc.?

Yes
e.g. logInfo(“noon”, “START” )

Lots of background info in this thread