move loggin methods from cli to utils/log