Just had a very surprising discovery.
I couldn’t start OpenHab for some reason, and it led me to discover that my SD Card was full.
/var/log/daemon.log and /var/log/syslog were each 1.2GB in size?!?!
Checking them out i quickly discovered that all events logged to event.log also appear there which to me seems quite odd (although I am quite new to Linux environment).
So is this normal behaviour and if is how can i stop that?
I believe that this was a freak case since OpenHAB clearly didn’t like something and threw out a gazillion lines of errors.
But still …
I think (not 100% positive on this) when you start a program as a service whatever gets sent to standard out and standard error (i.e. what you see on the screen when you run it manually) gets saved in the syslog. If that is the case you can turn off stdout logging in /etc/openhab/logback.xml by commenting out or removing every time you see this line:
<appender-ref ref="STDOUT" />
If I’m wrong…?
Oh, and while you are at it, you can turn of Event logging entirely by changing the level for the logger named “runtime.busevents” to ERROR.
<logger name="runtime.busevents" level="ERROR" additivity="false">
Great! Thanks! Will definitly try it out … However i think i’ll keep event loging for now … To verify everything is working as expected…
I had to do these logging changes too after upgrading. Does anybody know why the events are being logged twice in the default configuration? Is it just leftover from someone doing debugging before the release?