I need to verify that all portions of my script are being executed each and every time the script runs, so I am creating a log file to log each step. I currently write out the time and date the script starts and ends, but the log file is getting big. I would like to read through the log and keep only the last 8 days worth. Has anyone done something like this, so that I don’t have to reinvent the wheel or how easy would this type of task be?

Thanks.