angular-log-decorator

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

Usage no npm install needed!

<script type="module">
  import angularLogDecorator from 'https://cdn.skypack.dev/angular-log-decorator';
</script>

README

angular-log-decorator Build Status

$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 and install it, if you haven't already.

npm install angular-log-decorator --save

Tests

npm install
npm test

Dev Dependencies

License

MIT

Generated by package-json-to-readme