add log for mailalert