adding logging to topic