AngularJS Logger service provider