Add logging to file and error emails to admins.