Add option to log the alert message
(cherry picked from commit 4b86dae)