Reputation: 86
In Ember production build, I want to enable only "Ember.Logger.warn" & "Ember.Logger.error" and rest of the Ember logger should be disabled.
i.e
Non production - set to "debug” all logs should be displayed (any Ember.Logger….)
Prod - set to “warn” display only warn & errors ( Ember.Logger.warn & Ember.Logger.error)
It will be helpful, if you guys give a solution.
Upvotes: 3
Views: 442
Reputation: 86
I got an answer for that.
We can achieve this by using an add-on, refer the link https://github.com/jkarsrud/ember-cli-defeatureify, which helped me to do it.
Upvotes: 1