add option for logging when not using the cli