AngularLogExtender is an AngularJS module that extends the Angular $log functionality. It uses the native $decorator to push the $log pass its capabilities and provide new functionality such as configuring the $log for different environments such as production and development
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
dist
libs
sample_app @ 9079319
src
test
.bowerrc
.editorconfig
.gitignore
.gitmodules
.jshintignore
.jshintrc
.travis.yml
CHANGELOG.md
DEVELOP.md
Gruntfile.js
LICENSE
README.md
bower.json
package.json

README.md

AngularLogExtender

Build Status Coverage Status

This is an extension of the Angular $log functionality. It uses the native $decorator to push the $log pass its capabilities and provide new functionality such as configuring the $log for different environments such as production and development.

How to Use

Please view our wiki for detailed documentation.

Notes

You can include the module in your AngularJS Application and it does all the work immediately. Methods native to the log extender are not publicly available in your AngularJs Application so this extension can be used as a standalone plugin. Advanced configurations can be done to make the $log service fit your personal development style. Log methods are now colour coded by default.

Install with bower

Now offers bower support.

bower install --save angular-logex

Add the script to your index.html:

<script src="/bower_components/angular-logex/dist/log-ex-unobtrusive.js"></script>

Credits

To view the blog this module was extended from and inspired by, go to http://solutionoptimist.com/2013/10/07/enhance-angularjs-logging-using-decorators/

Development

If you wish to contribute, Please read the Develop.md file.

Feel Free to make your own contributions to this module so we can make it better :)

==================== License: MIT | Made with 💚