Objective: extend potential lifetime of SDHC-card by reducing logging
You may skip this paragraph: In Openhab2 I used this topic Log4j2 Sample Config as my starting point to reduce logging. Just migrated to Openhab3 I realize that I could not use the example of org.ops4j.pax.logging.cfg any more and tried to find a new one. I read this document “Logging in openHAB” but missed the hand holding example for NOOBS and most likely missed newer topics with the new OH3 solution.
Platform information:
- Release = Raspbian GNU/Linux 10 (buster)
- Kernel = Linux 5.10.17-v7l+
- Platform = Raspberry Pi 4 Model B Rev 1.1
- Openhab(ian) version: 3.0.2 - Release Build
So here come the potential stupid question. Is it as easy as adding into the file:
/var/lib/openhab/etc/log4j2.xml
the following line in the openHAB specific logger configuration section:
<Logger level="WARN" name="openhab.event.ItemStateChangedEvent"/>
to exclude all Item changes from logging?