Cron and save errors in a log file