A simple and basic script to trim logs. Should be run in crontab.