Add console log for alerts.