Skip to content

Commit

Permalink
docs: link to Roarr
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jan 31, 2020
1 parent e396ab8 commit 9531138
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .README/README.md
Expand Up @@ -14,6 +14,8 @@ Adds a parent Node.js [domain](https://nodejs.org/api/domain.html) reference (`p

Domains provide a way to add context to a chain of asynchronous calls. Having a reference to the `parentDomain` allows to collect context from all parent domains.

[Roarr](https://github.com/gajus/roarr#roarr-api-adopt) logger demonstrates how `parentDomain` can be used to create comprehensive logs.

## Implementation

`domain-parent` monkey-patches Node.js [`domain`](https://nodejs.org/api/domain.html) `create` method. All domains that are created after Node.js has been shimmed will have `parentDomain` property. Top-level domain will have `parentDomain` set to `NULL`.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -21,6 +21,8 @@ Adds a parent Node.js [domain](https://nodejs.org/api/domain.html) reference (`p

Domains provide a way to add context to a chain of asynchronous calls. Having a reference to the `parentDomain` allows to collect context from all parent domains.

[Roarr](https://github.com/gajus/roarr#roarr-api-adopt) logger demonstrates how `parentDomain` can be used to create comprehensive logs.

<a name="domain-parent-implementation"></a>
## Implementation

Expand Down

0 comments on commit 9531138

Please sign in to comment.