1log is a new logging library for the browser and Node. This library provides a
log() function which is like
console.log, but with superpowers:
- It can be used in expressions -
- It supports plugins
There are plugins for setting a severity level, for adding badges, and for logging functions, iterables, promises, and RxJS observables. You can even use it in your tests. Instead of writing log messages to the console, you can inspect them in unit tests with help of Jest’s snapshots feature.