add email writer for log