update readme
This commit is contained in:
parent
6777f351c5
commit
0d0822ef3c
34
readme.md
34
readme.md
@ -1,4 +1,26 @@
|
||||
# logcontext
|
||||
enrich logs with context
|
||||
|
||||
## Availabililty
|
||||
[](https://www.npmjs.com/package/logcontext)
|
||||
[](https://GitLab.com/pushrocks/logcontext)
|
||||
[](https://github.com/pushrocks/logcontext)
|
||||
[](https://pushrocks.gitlab.io/logcontext/)
|
||||
|
||||
## Status for master
|
||||
[](https://GitLab.com/pushrocks/logcontext/commits/master)
|
||||
[](https://GitLab.com/pushrocks/logcontext/commits/master)
|
||||
[](https://www.npmjs.com/package/logcontext)
|
||||
[](https://david-dm.org/pushrocks/logcontext)
|
||||
[](https://www.bithound.io/github/pushrocks/logcontext/master/dependencies/npm)
|
||||
[](https://www.bithound.io/github/pushrocks/logcontext)
|
||||
[](https://snyk.io/test/npm/logcontext)
|
||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||
[](http://standardjs.com/)
|
||||
|
||||
## Usage
|
||||
Use TypeScript for best in class instellisense.
|
||||
|
||||
the logconext module exposes an easy to use syntax for nodejs style async logcontexts.
|
||||
|
||||
@ -17,7 +39,10 @@ testLogger.scope(async () => {
|
||||
});
|
||||
|
||||
let outsideFunction = () => {
|
||||
sgLogger.log('some message');
|
||||
// Note:
|
||||
// the below testLogger reference will have different contexts
|
||||
// depending from which scope "outsideFunction" was called".
|
||||
testLogger.log('some message');
|
||||
};
|
||||
```
|
||||
|
||||
@ -41,3 +66,10 @@ myLogger.scope(async () => {
|
||||
myLoger.log('awesomeText');
|
||||
});
|
||||
```
|
||||
|
||||
For further information read the linked docs at the top of this README.
|
||||
|
||||
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
|
||||
[](https://push.rocks)
|
||||
|
Loading…
x
Reference in New Issue
Block a user