No log anymore

  • Platform information: intel NUC
    • Hardware: Intel® Core™ i3-6100U CPU @ 2.30GHz
    • OS: debian 8.9
    • Java Runtime Environment: 1.8.0_101
    • openHAB version: actual SNAPSHOT

since quite a few updates (i am using apt-get) the logging is somehow broken which means that the log file is no longer be written in.

What can i do to make it work again?

Thanks, Jens

1 Like

My logging stopped working a couple of days ago. I cleared the cache and tmp files which did the trick.
This post shows you how

unfortunately, that didn’t help :frowning: But thanks for the answer :slight_smile:

I have checked that file but can’t find anything wrong with it…

# File appender - openhab.log
log4j.appender.out=org.apache.log4j.RollingFileAppender
log4j.appender.out.layout=org.apache.log4j.PatternLayout
log4j.appender.out.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n
log4j.appender.out.file=${openhab.logdir}/openhab.log
log4j.appender.out.append=true
log4j.appender.out.maxFileSize=10MB
log4j.appender.out.maxBackupIndex=10

given that “${openhab.logdir}” is correct set (but i do not know how to check) it should be fine…

Jens

Just copy the new cfg over your old and restart openHAB.

Sorry… didn’t see that your post was expandable :zipper_mouth_face: Indeed it works absolutely fine now that I replaced my config with yours. Thank you very much

Jens

1 Like