Using separate log files for retention and plan generation