I am implementing remote logging ability in my Ember app, where I want to push everything that gets sent to the log console to a remote logging service (e.g. Loggly).
I believe that what I need to do is override Ember.Logger
's methods to redirect log output to the remote logging service, but I can't figure out how to do that.
The documentation for Ember.Logger
simply states:
Override this to provide more robust logging functionality.
-
How do I "override this"? I've tried doing
Ember.Logger.reopenClass()
and it complains withEmber.Logger.reopenClass is not a function
. -
Where would I do this? In an initializer? In a service? Other?
Aucun commentaire:
Enregistrer un commentaire