add log and alert in cli