Adding the logging functionality per client, device, channel and sensor (possibly breaking code)