KyleRoss / node-lambda-log

Basic logging mechanism for Node.js Lambda Functions and other AWS services, which produces logs in JSON format for easier reading through Cloudwatch Logs.
https://lambdalog.dev
MIT License
193 stars 16 forks source link
aws aws-lambda cloud cloudwatch error-handling json lambda lambda-architecture lambda-functions lambda-log log logger logging metadata node nodejs serverless

lambda-log

npm npm GitHub Workflow Status Code Climate coverage license Code Climate maintainability CodeFactor Grade Snyk Vulnerabilities for npm package

All Contributors

LambdaLog is a Node.js package 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. It's really a universal JSON logger.

Why another lambda logger? 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. I created LambdaLog to include the important functionality from other loggers, but still maintaining simplicity with minimal dependencies.

Features

Anyone can log JSON to the console, but with Lambda Log you also get:

New in Version 3.0.0

Version 3.0.0 of Lambda Log brings a bunch of changes, new features, and a new website.

Broad Changes:

New Features:

Breaking Changes:

Documentation

Documentation for Lambda Log has moved to our new website.

Tests

See Development Documentation.

Contributing

See Contributing Documentation.

License

MIT License. See License in the repository.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Kyle Ross

πŸ’» πŸ“– 🚧

Jonathan Goldwasser

πŸ’» πŸ›

Gabriel

πŸ€”

sh1n1chi8acker

πŸ›

Matt Nagi

πŸ“–

nickcox

πŸ“–

Tim Schmidt

πŸ’»

Marius Tolzmann

πŸ›

AndresQ

πŸ€”

Mike Fogel

πŸ€”

This project follows the all-contributors specification. Contributions of any kind welcome!