scope-logger
A Node.js library that logs a variable together with the chain of scopes it was accessed through.
- Built with
- Node.js
function outerFn() {
function innerFn() {
const logger = new Logger("lazy-log");
const foofoo = "barbar";
logger.log({ foofoo });
}
innerFn();
}
outerFn();lazy-log: *innerFn* -> *outerFn* -> *Object.<anonymous>*
{
"foofoo": "barbar"
}