Add topic logging.