-
Notifications
You must be signed in to change notification settings - Fork 8
01. Intro
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.
###Notes
The prefered file to use is the log-ex-unobtrusive.js
file. You can include the module to 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.
Supported browsers for Colorize are currently Google Chrome
and Mozilla Firefox
.
####NB.
The examples in the documentation mostly/only show the use of $log.log()
, however, all $log
methods were left in tact and can be used as well.
These are:
Method Default Color
1. $log.log() - Green
2. $log.warn() - Gold
3. $log.info() - Blue
4. $log.error() - Red
5. $log.debug() - Brown
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/
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 :)
AngularLogExtender | License: MIT | Made with 💚