Logging Persistence in openHAB 2

I tried:

# rrd4j logger
log4j.logger.org.openhab.persistance.rrd4j = DEBUG, rrd4j, osgi:*
log4j.appender.rrd4j=org.apache.log4j.RollingFileAppender
log4j.appender.rrd4j.layout=org.apache.log4j.PatternLayout
log4j.appender.rrd4j.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%-26.26c{1}] - %m%n
log4j.appender.rrd4j.file=${openhab.logdir}/rrd4j.log
log4j.appender.rrd4j.append=true
log4j.appender.rrd4j.maxFileSize=100MB
log4j.appender.rrd4j.maxBackupIndex=10

That looks correct to me. I’ve done this before with InfluxDB and it worked and I configured it much like this.

You can try experimenting in the karaf console to see if perhaps the package for rrd4j isn’t right. I don’t have the config I used back when I set it up for influxdb but I do remember that I got the package name from the exception I was seeing in the logs at the time. I don’t remember if they were different from what you are trying.

It is possible, though very unlikely, that rrd4j doesn’t do much logging.

Looks like this is a know issue having to do with logging changes in openHAB 2.

Maybe a spelling error ? you wrote org.openhab.persistance.