add logs to common CLI commands