Logger for angularJS