create alert and log