Hi,
I just migrated from OH2.4 to a completely ground new installation of OH3 (openhabian stable release) on a new RaspPi4. I only moved the backup file from the old system to the new system and unpacked it. I had to do some manual tweaks in the backup file (replacing wrong .eclipse.smarthome. entries by .openhab.) and had to care about some DateTime functions in the rules. So far so good, works fine!
However, I tested the logging and found that there is nothing logged at all. Nothing is written to /var/log/openhab/openhab.log or events.log, although the files are present.
-
built logInfo(“test”,“Hello world?”) into a rule
-
set log level of org.openhab.core.model.script.test to INFO.
-
confirmed the rule is being processed which I tested with sendBroadcastmessage.
-
called log:get from the console: all entries are reasonable.
-
called log:tail … no output at all - neither the “Hello world?”, nor anything else.
-
checked the *.log files manually: no entry, empty files
-
deleted *.log files and restarted: openhab.log is recreated (but empty), events.log is missing.
-
log4j2.xml exists and seems to be untouched since the initial installation date
-
frontail itself works, because if I manually write some stuff into the log files, it will be displayed on the frontail window…but no real log messages.
-
log files’ owner is openhab:openhab and the user rights are -rw-rw-r–
Can anyone help me?
What did I fundamentally wrong?
Greetings,
Alex