Add partial log system rewrite, enabling logging of TOPIC and MODE.