17th, rewrite log system and log_callback system