This library provides a function
log that can be used as the regular
console.log, but has two superpowers: you can insert it into any expression, as in
f(log(x)), and it supports plugins. There are plugins for setting severity level, for logging functions, async functions, promises, iterables, async iterables, observables, for creating snapshots of log messages in Jest tests, and more.
Please refer to the GitHub README for full documentation and screenshots.