UNPKG

angular-log-decorator

Version:

$log decorator that replaces the debug method with one that shows the whole call stack

37 lines (23 loc) 1.13 kB
# angular-log-decorator [![Build Status](https://travis-ci.org/Knorcedger/angular-log-decorator.png?branch=master)](https://travis-ci.org/Knorcedger/angular-log-decorator) $log decorator that replaces the debug method with one that shows the whole call stack. This is a decorator that modifies the $log service. It replaces the debug method with one that displays a group with logs. This group contains an object with the data & meta and the error stack from the Error object. The error stack provides a trace of which functions were called, in what order, from which line and file. ## Installation Download node at [nodejs.org](http://nodejs.org) and install it, if you haven't already. ```sh npm install angular-log-decorator --save ``` ## Tests ```sh npm install npm test ``` ## Dev Dependencies - [eslint](https://github.com/eslint/eslint): An AST-based pattern checker for JavaScript. - [eslint-config-google](https://github.com/google/eslint-config-google): ESLint shareable config for the Google style ## License MIT _Generated by [package-json-to-readme](https://github.com/zeke/package-json-to-readme)_