@yaupon/cls
v0.0.0-dev
Published
🔄 Easy library to manage async_hooks and `AsyncLocalStorage` in Node.js for off-loading context information outside of the request-response cycle by Continuation Local Storage (CLS)
Downloads
3
Readme
🔄 Continuation Local Storage (CLS)
Easy library
to manage async_hooks
and AsyncLocalStorage
in Node.js for off-loading context information outside of the request-response cycle by Continuation Local Storage
(CLS) and Continuation Passing Style (CPS).
- Manage Logger lifecycle outside code with
ContextManager.setContext
andContextManager.getContext
methods instead passing logger instance to each function or manually manage logger lifecycle and metadata.