After upgrade to OH2.2 1017 build, my logging no longer works. Console shows Error in most spots as below. Is there a way to reset this to get it working? Thanks
You are showing the result of “log:list”, which displays the used log settings of your system. Each packet with the setting “Error” will log only the errors, in case of “Info” also Infos will be logged. In order to see the actual log entries use “log:tail”.
Thank you for the reply. Ok, so my events.log and openhab.log files were showing everything up til 12:25pm today, that is the last time stamp on the files. Now they do not have any updates, errors or not. I was not really trying to see it in real time, but wanted to reference those log files when doing trouble shooting as i set up my system.
So I probably started off here in the wrong direction using the karaf console. Would there be any reason that my log files no longer update?
Hi @Sabre66, I’m guessing you used apt-get to upgrade? When did you last upgrade? If it was less than 4 days ago, then you may have missed a warning (and suggestion) on the upgrade:
Is there a file located at /var/lib/openhab2/org.ops4j.pax.logging.cfg.dpkg-dist ? This should be /var/lib/openhab2/org.ops4j.pax.logging.cfg
Yes, I am on 1017 from today. No, I did not see that notice, and I do not have that file in the location that you indicate. Do you know if there is a way to re-enable logging given the changes?
Edit, I do however see those files under /var/lib/openhab2/etc/
I modify the org.ops4j.pax.logging.cfg before, and the apt doesn’t create the org.ops4j.pax.logging.cfg.dpkg-dist file. So i download the latest openhab package with command:
apt-get download openhab2
Extracted the file from /CONTENTS/var/lib/openhab2/etc/ and overwrite the old one with the new one found in the dep package.
After /etc/init.d/openhab2 restart the logging work again…