In case anyone needs to do this with Sencha Cmd 4, the app.preprocessor.opts line doesn't seem to work anymore. I set "build.options.logger=yes" in my sencha.cfg instead. I don't know if that's the right way to do it, but it seemed to work.