Logging to events.log not working in OH3

My /var/lib/openhab/etc/org.ops4j.pax.logging.cfg file has following content:

org.ops4j.pax.logging.log4j2.config.file=${karaf.etc}/log4j2.xml

as far as I remember this is also described in the release notes under breaking changes ( Releases · openhab/openhab-distro · GitHub )

the other - /var/lib/openhab/config/org/ops4j/pax/logging.config - contains

:org.apache.felix.configadmin.revision:=L"2"
felix.fileinstall.filename="file:/var/lib/openhab/etc/org.ops4j.pax.logging.cfg"
org.ops4j.pax.logging.log4j2.config.file="/var/lib/openhab/etc/log4j2.xml"
service.bundleLocation="?"
service.pid="org.ops4j.pax.logging"

I have the impression that this is the reason why your events are not logged to the events.log file.

2 Likes