Selective logging on item level within the same binding

Hi I got an noob question, my logfile is getting clotted with temperatur, pressure, power readings, illuinance sensor reading from xiaomi items, I like to get rid of these ItemStateChangedEvent, I think they are called. At the same time I would like to have the but on the ItemStateChangedEvent for the doors e.g.
So my question is, Is there a way to control the log on thing level or an other way to achive this? here is a apart of my log:

2017-10-03 01:01:56.203 [ItemStateChangedEvent     ] - Plug_Sove_TV_Load changed from 1.16 to 1.14
2017-10-03 01:03:53.108 [ItemStateChangedEvent     ] - Plug_Stue_Lys_Load changed from 9.21 to 9.63
2017-10-03 01:05:23.355 [ItemStateChangedEvent     ] - Temperature_Stue changed from 20.510000228881836 to 20.450000762939453
2017-10-03 01:05:23.369 [ItemStateChangedEvent     ] - Humidity_Stue changed from 70.81999969482422 to 70.86000061035156
2017-10-03 01:05:23.402 [ItemStateChangedEvent     ] - Pressue_Stue changed from 99.83999633789062 to 99.84300231933594
2017-10-03 01:05:30.552 [ItemStateChangedEvent     ] - Temperature_BedRoom changed from 21.729999542236328 to 21.790000915527344
2017-10-03 01:05:30.576 [ItemStateChangedEvent     ] - Humidity_BedRoom changed from 64.80000305175781 to 64.12000274658203
2017-10-03 01:08:19.800 [ItemStateChangedEvent     ] - Motion_Sensor_Stue_Stue_Status changed from OFF to ON
2017-10-03 01:08:19.810 [GroupItemStateChangedEvent] - gMotionSensors changed from OFF to ON through Motion_Sensor_Stue_Stue_Status

The events.log file is populated by the Event Bus. All state changes take place on the Event Bus. There is no way to selectively turn certain Items on or off. You can only turn on or off the entier events.log.

You would probably be better served paying closer attention to openhab.log and using logging from Rules to track your Items.

1 Like