First, is it really logs from the binding (i.e. logs in openhab.log
) or is it events.log
? If the former, then the advice given here is good plus, in OH 4 you can navigate to the binding in Settings → Binding → <name of binding>
there’s a tiny gear icon in the upper right. Click on that and one of the options is “Add-on log settings” where you can change the level.
If the latter, you’ll need to create a Regex filter for the events.log logger as those logs come from the event bus, not from the binding so changing the logging level of the binding will have no effect. See openHAB - Filtering event logs.
Alternatively, you could change the max size and total number of files to save for both loggers to reduce the max size that the log files can grow. Under <Appenders>
you’ll find a pair of RollingFile entries. Between those you’ll find SizeBasedTriggeringPolicy
which is set to “16 MB”. You can change that to a lower value. You’ll also find DefaultRolloverStrategy
with a max
attribute. That attribute controls how many old log files to keep, deleting those that are older than that.
So by default the max space for each log should be 16 MB * 8 = 128 MB. Reducing those numbers will reduce the max space required.
Reducing the logging levels will really only change how often you need to reboot, not address the root running out of space problem.