1log

Log function with superpowers

Usage no npm install needed!

<script type="module">
  import log from 'https://cdn.skypack.dev/1log';
</script>

README

gzip size tree shaking types coverage status

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.