Jensen
(Jens Constroffer)
1
- 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
Saracen
(Tom)
3
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
Jensen
(Jens Constroffer)
4
unfortunately, that didn’t help
But thanks for the answer 
Jensen
(Jens Constroffer)
5
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
sihui
(SiHui)
6
Just copy the new cfg over your old and restart openHAB.
Jensen
(Jens Constroffer)
7
Sorry… didn’t see that your post was expandable
Indeed it works absolutely fine now that I replaced my config with yours. Thank you very much
Jens
1 Like