Description
This library provides a function log() which is like console.log, but with superpowers: it can be used in expressions - f(log(x)), and it supports plugins. For example, there are plugins for setting a severity level, for adding badges, and for logging functions, iterables, promises and RxJS observables. Instead of writing log messages to the console, you can inspect them in unit tests with help of Jest's snapshots feature.
The library is fully documented, but I've also written an article that introduces it to RxJS users (logging RxJS observables is just one use case, but one which the library grew out from): https://dev.to/ivan7237d/log-and-test-rxjs-observables-with-1log-5cbm
1log alternatives and similar libraries
Based on the "Log" category.
Alternatively, view 1log alternatives based on common mentions on social networks and blogs.
-
loglevel
Minimal lightweight logging for JavaScript, adding reliable log level methods to wrap any available console.log methods. -
storyboard
Universal logging library + Chrome extension; it lets you see all client and server tasks triggered by a user action in a single place. -
Conzole
A debug panel built in javascript that wraps javascript native console object methods and functionality in a panel displayed inside the page. -
Logit.io JavaScript Plugin
This JavaScript Plugin provides websites with an interface to send debug information to a Logit.io endpoint.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of 1log or a related project?