LambdaLog facilitates and enforces logging standards in Node.js processes or applications anywhere by formatting your log messages as JSON for simple parsing and filtering within log management tools, such as CloudWatch Logs. Works with all of the supported versions of Node.js on Lambda.
Originally created for AWS Lambda Functions, LambdaLog is a lightweight and feature-rich library that has no dependency on AWS or Lambda, meaning you can use it in any type of Node.js project you wish.
There are plenty of other logging libraries in the NPM ecosystem but most are convoluted, included more functionality than needed, not maintained, or are not configurable enough. LambdaLog was created to include the important functionality from other loggers, but still maintaining simplicity with minimal dependencies.
Anyone can log JSON to the console, but with Lambda Log you also get:
Add tags to your logs both globally and individually.
Attach additional information to your logs globally and individually.
Errors are parsed to include the relevant information in your logs.
Many options that allow you to make LambdaLog work the way you want without being overwhelming.
Pretty print the JSON logs during development, making it easier to read your logs in a terminal.
Class-based library that allows for advanced customization down to the methods.
Full documentation and examples that cover every aspect of LambdaLog.
100% test coverage to ensure all functionality works in each release.
MIT Licensed and audited for vulnerabilities.
Only 1 dependency and ~40kB total package size.