keep the log file, with the same basename as the folder, and remove the log file when the folder is expired.