You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once more I had logging fill the (SD) disk and came to think if we should limit that better in openHABian.
(EDIT: or change OH's default ?)
We should limit the size and number of logs, and unlike OH default config, we should gzip them.
Attention: we must NOT use any external tool such as logrotate for OH logs! log4j2 handles this.
Once more I had logging fill the (SD) disk and came to think if we should limit that better in openHABian.
(EDIT: or change OH's default ?)
We should limit the size and number of logs, and unlike OH default config, we should gzip them.
Attention: we must NOT use any external tool such as logrotate for OH logs! log4j2 handles this.
Unfortunately, the config format to spec what's logged and how it's treated - specified in /var/lib/openhab/etc/log4j2.xml - has changed to xml and all the information I have (for now) is in the old format.
http://karaf.apache.org/manual/latest/#_log4j_v2_support
openhab/openhab-docs#1163
For reference, stuff to change in old format:
log4j2.appender.event.strategy.fileIndex = min
(not sure if that last is required)
log4j2.appender.out.filePattern = ${openhab.logdir}/openhab.log.%i.gz
(to have it gzip logfiles)
The text was updated successfully, but these errors were encountered: