[cli] using s/resource.logger/resource.use('logger') and [logger] added spacing to JSON.stringify so easier to read