All projects

Built with
Node.js
function outerFn() {
  function innerFn() {
    const logger = new Logger("lazy-log");

    const foofoo = "barbar";
    logger.log({ foofoo });
  }

  innerFn();
}
outerFn();
Output
lazy-log: *innerFn* -> *outerFn* -> *Object.<anonymous>*
{
  "foofoo": "barbar"
}