Reputation: 10860
I got error when I injected it in the normal way - so is it possible to use $log inside my own services and/or providers ?
Upvotes: 0
Views: 323
Reputation: 67219
Of course.
Are you sure you're injecting it correctly?
yourApp.service('myService', ['$log', function ($log) {
$log.log('Hi console!');
}]);
Upvotes: 2