A minimal AngularJS logger.
In a browser console, Logge preserves the call path and stack trace of where a logging method, such as $logge.info()
, is invoked instead of where the logging method is defined.
angular.module('myApp', ['logge']).
config(['$loggeProvider', function($loggeProvider) {
$loggeProvider.level('info');
}]).
run(['$logge', function($log) {
// Available methods: debug, log, info, warn, error
$log.info('Running...');
}]);
Copyright © 2014 Nysa Vann <[email protected]>
Licensed under the MIT License.