To make `log_alert()` consistent with `get_alert()`, should be able to specify either an alert ID or name, not only ID.