Stopping events.log for specific bindings?

I’m trying to find the best way to stop specific bindings from logging Events in the events.log.


Stated in here would be either all or nothing approach.

I’m not so into log4j, so is there a way to tell it, please only log “WARN” for e.g. weather1 binding and log everything else on the eventbus?

You cannot modify what gets logged in events.log. events.log is logging from the Event Bus. All the statements come from the same class so there is no way to filter anything out. You can either turn off events.log entirely or you can get all events from all Items logged to it.

However, How to watch and look through logging

ok. Thing is, I really don’t need updated items on every run (like weather1 every 15min). And I want to reduce writings on SDCard. But perhaps I just change the logging to either my NAS or an external USB-HD…

Activating WARN loglevel for events, I lose all the other INFO item states, I’d like to have (e.g. for other bindings like KNX or something).

Or turn events.log off. Those are your options. events.log is intended to log everything that happens on the Event Bus. You can’t pick and choose because it isn’t an individual binding making the logs, it is the Event Bus.

1 Like

Is this still valid or have logging options changed over the years? I would like to disable logging for System_Info.

It has not and will not change. The events.log is the logger for the Event Bus. The Event Bus doesn’t know where the events are coming from, just that the event occurred.

Log4j does support filters. There are a couple of tutorials on the forum.

Thank you for the answer. I was just looking at my log and pretty much all I see are System_Info logs from my Master and 5 remote servers. Thanks again for all your help.

If you don’t use events.log for anything, your best bet is to just turn it off in the first place.