Add email and file error logs