use different log for doctrine on dev environment
added email logging on dev environment
added error email on cronjob, closes #5