WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8f0135b

Browse files
committed
Update README.md
1 parent 86eb18e commit 8f0135b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ $log.getInstance('main.subB').info('Hello %s!', 'World', { 'extra': ['pass-throu
3838
<a name='about'/>
3939
## About
4040

41+
This library enhances `$log`'s logging capabilities. It works by modifying the arguments going into the original functions. Although you can configure patterns and logging level priorities, it also simply works as a simple drop-in ([demo](https://jsfiddle.net/plantface/b0v0s2rg/)).
42+
4143
* Enhances Angular's `$log` service so that you can define **separate contexts** to log for, where the output will be prepended with the context's name and a datetime stamp.
4244
* Further enhances the logging functions so that you can **apply patterns** eliminatinging the need of manually concatenating your strings
4345
* Introduces **log levels**, where you can manage logging output per context or even a group of contexts

0 commit comments

Comments
 (0)