Add logging handler to publish on pub-sub