A Logging Option For Controller/View/Template Creation
I am very new to Ember, so apologies if this is well trodden ground, but I've found picking things up has been made much harder by a lack of logging options for the framework. I understand why Ember magically creates Views/Controllers when they are not present, but not being able to see this happen in the logs makes debugging some issues much harder than it needs to be. In the same way I can switch on logging for bindings and routing, I think it would be hugely beneficial to offer logging for Template, View and Controller Creation. Something along the lines of:
Looking for ExampleController ... ExampleControllerFound Looking for ExampleView ... ExampleView Not Found Looking for ExampleTemplate .... Example Template Found Looking for AnotherController ... AnotherController Not Found Generated AnotherController
Perhaps as I dig deeper into Ember I will find other ways to keep my eyes on this, but as someone trying to understand the framework, this definitely would have made my life much easier.
I've been working on something along these lines. Unfortunately, I haven't yet had a chance to get it finished and merged in.
I believe this functionality is now available using LOG_ACTIVE_GENERATION thanks to @stefanpenner in SHA: dc663dd77214086fc0e1a70b05ba31ba2fc53bda e.g.,
window.App = Ember.Application.create({
LOG_ACTIVE_GENERATION: true
});
@pootsbook As far as I can see, LOG_ACTIVE_GENERATION doesn't do what @1ndivisible is looking for, at least not in RC6. The only thing I get when I enable that option my app are generated -> route:index statements which aren't very helpful for newcomers.
@mjijackson would logging both the generated and the hits that are not generated work?