Another disable logging question. Filter / disable logs

Sorry folks, here is another question about disabling logging options :frowning:

I’ve tried the various options but can only seem to stop the whole event.

My log file is full of these info events

2018-03-09 11:26:04.937 [vent.ItemStateChangedEvent] - TumbleDryer_Power changed from 1.145471 to 1.130831
2018-03-09 11:26:08.830 [vent.ItemStateChangedEvent] - Power_Main changed from 524 to 522
2018-03-09 11:26:09.988 [vent.ItemStateChangedEvent] - TumbleDryer_Power changed from 1.130831 to 1.173827
2018-03-09 11:26:13.220 [vent.ItemStateChangedEvent] - LocalTime_Date changed from 2018-03-09T11:25:13.204+0000 to 2018-03-09T11:26:13.209+0000
2018-03-09 11:26:13.414 [vent.ItemStateChangedEvent] - LocalTime_Date_String changed from 2018-03-09 11:25:13 UTC to 2018-03-09 11:26:13 UTC
2018-03-09 11:26:15.059 [vent.ItemStateChangedEvent] - TumbleDryer_Power changed from 1.173827 to 1.021428
2018-03-09 11:26:15.435 [vent.ItemStateChangedEvent] - Power_Solar changed from 197 to 200
2018-03-09 11:26:20.144 [vent.ItemStateChangedEvent] - TumbleDryer_Power changed from 1.021428 to 0.99927
2018-03-09 11:26:25.199 [vent.ItemStateChangedEvent] - TumbleDryer_Power changed from 0.99927 to 1.114411

and

11:12:30.188 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[Power_Main], State[683]
11:12:30.607 [INFO ] [smarthome.event.ItemStateChangedEvent] - Power_Main changed from 671 to 683
11:12:41.526 [INFO ] [ghtwaverf.internal.LightwaveRfBinding] - Update from LightwaveRf ItemName[Power_Solar], State[179]
1

How can I stop those things reporting their value? I really don’t care about it :slight_smile:

thanks

Crispin

Those are the regular updates of your items in the openHAB eventbus. As you don’t care if everything works, they’re indeed the first place to look if something unexpected happens in your installation. Same goes with openhab.log. it’s strongly recommended to keep the logs!

As you indeed figured out correctly, there’s no way to prevent only parts of eventslog to be logged. It’s all or nothing. You could set the loglevel of bindings to a lower level for openhab.log.

Even though you don’t care about them the logs can be very useful when something goes wrong or for testing rules…
The logs are located in /var/log/openhab2 for an apt installation
The old log files are kept as events.log.1, events.log.2…
You can delete these if you want

cd /var/log/openhab2
sudo rm events.log.1

But keep the current logs they will help you if something goes wrong

thanks for the replies.

I sit with the log:tail on a second screen while I am making changes. As I am still very much learning how this all works, this is invaluable to me. The “pointless” noise coming past could be removed to make like easier.

I do still keep the logs and remove the old ones - that’s a given :slight_smile:

I wonder if I could get my binding to log to a different “channel”? (Don’t know the correct term) and then I can mute that. /walks off to RTFM some more :slight_smile:

if you don’t have entries in your logs - you won’t be able to see anything via log:tail…