When I use angular $log service, all the lines in the console show up with a reference to angular.js:5687 instead of the line where I called the $log.log function.
How can I get a reference to the line where I called $log? Also I have my own service that wraps around $log, how can I reference calls to my service instead of $log?
For example in Logger.js:
1) angular.module('MyApp').factory('Logger', function($log){
2) return { log : function(msg) { $log.log(msg); };
3) });
And in SomeCtrl.js
1) angular.module('MyApp').controller('SomeCtrl', function($scope, $log, Logger) {
...
10) $log.log('Hi from $log'); // reference to SomeCtrl.js:10
...
25) Logger.log('Hi from Logger'); // reference to SomeCtrl.js:25