rewrite logfile name, add clear_log