Delete log file and generate header in entry point.