0 0 * * * root rm -f /path/to/log/log.`date -d yesterday +\%Y-\%m-\%d`
0 0 * * * root /path/to/script >> /path/to/log/log.`date +\%Y-\%m-\%d`