log and produce to kafka