New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lambda-log

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-log - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

7

lib/LambdaLog.js

@@ -33,3 +33,3 @@ const EventEmitter = require('events');

* @param {LambdaLogOptions} [options={}] Options for configuring LambdaLog.
* @param {object.<string, string|Function>} [levels={}] Allows adding and customizing log levels.
* @param {object.<string, string|Function>} [levels={}] Allows adding and customizing log levels. DEPRECATED
*/

@@ -102,2 +102,3 @@ constructor(options = {}, levels = {}) {

* @since 3.0.0
* @deprecated
* @param {string} name The name of the new log level.

@@ -119,5 +120,3 @@ * @param {string|Function} handler The string name of the `console` method to call or a function that returns a string method name.

*/
this[name] = (msg, meta = {}, tags = []) => {
return this.log(name, msg, meta, tags);
};
this[name] = (msg, meta = {}, tags = []) => this.log(name, msg, meta, tags);

@@ -124,0 +123,0 @@ return this;

{
"name": "lambda-log",
"version": "3.0.2",
"description": "Basic logging mechanism for Node 6.10+ Lambda Functions",
"version": "3.1.0",
"description": "Lightweight logging library for any Node 10+ applications",
"main": "index.js",
"scripts": {
"test": "jest",
"prepare": "is-ci || husky install"
"prepare": "is-ci || husky install",
"lint": "eslint index.js index.test.js \"lib/*.js\""
},

@@ -15,8 +16,8 @@ "repository": {

"keywords": [
"json",
"lambda",
"aws",
"ec2",
"ecs",
"log",
"logger",
"logging",
"console",

@@ -32,5 +33,8 @@ "wrap",

"assert",
"json",
"ec2",
"ecs",
"cloudwatch",
"logs"
"logs",
"function",
"cloud"
],

@@ -42,23 +46,23 @@ "author": "Kyle Ross <thejavascriptguy@gmail.com>",

},
"homepage": "https://lambdalog.js.org",
"homepage": "https://lambdalog.dev",
"engines": {
"node": ">= 10.0.0"
"node": ">=10.0.0"
},
"devDependencies": {
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@semantic-release/changelog": "^6.0.0",
"@semantic-release/git": "^10.0.0",
"eslint": "^7.23.0",
"eslint-config-xo-space": "^0.27.0",
"eslint-plugin-jsdoc": "^32.3.0",
"eslint-config-xo-space": "^0.30.0",
"eslint-plugin-jsdoc": "^36.1.1",
"eslint-plugin-node": "^11.1.0",
"husky": "^6.0.0",
"is-ci": "^2.0.0",
"jest": "^26.6.3",
"semantic-release": "^17.4.2"
"husky": "^7.0.2",
"is-ci": "^3.0.0",
"jest": "^27.2.5",
"semantic-release": "^18.0.0"
},
"dependencies": {
"fast-safe-stringify": "^2.0.6"
"fast-safe-stringify": "^2.1.1"
}
}
# lambda-log
[![npm](https://img.shields.io/npm/v/lambda-log.svg?style=for-the-badge)](https://www.npmjs.com/package/lambda-log) [![npm](https://img.shields.io/npm/dt/lambda-log.svg?style=for-the-badge)](https://www.npmjs.com/package/lambda-log) [![David](https://img.shields.io/david/KyleRoss/node-lambda-log.svg?style=for-the-badge)](https://david-dm.org/KyleRoss/node-lambda-log) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/KyleRoss/node-lambda-log/module?style=for-the-badge) [![Code Climate coverage](https://img.shields.io/codeclimate/coverage/KyleRoss/node-lambda-log?style=for-the-badge)](https://codeclimate.com/github/KyleRoss/node-lambda-log) [![license](https://img.shields.io/github/license/KyleRoss/node-lambda-log.svg?style=for-the-badge)](https://github.com/KyleRoss/node-lambda-log/blob/master/LICENSE) [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/KyleRoss/node-lambda-log?style=for-the-badge)](https://codeclimate.com/github/KyleRoss/node-lambda-log) [![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/KyleRoss/node-lambda-log?style=for-the-badge)](https://www.codefactor.io/repository/github/kyleross/node-lambda-log) [![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/lambda-log?style=for-the-badge)](https://snyk.io/advisor/npm-package/lambda-log)
[![npm](https://img.shields.io/npm/v/lambda-log.svg?style=for-the-badge)](https://www.npmjs.com/package/lambda-log) [![npm](https://img.shields.io/npm/dt/lambda-log.svg?style=for-the-badge)](https://www.npmjs.com/package/lambda-log) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/KyleRoss/node-lambda-log/module?style=for-the-badge) [![Code Climate coverage](https://img.shields.io/codeclimate/coverage/KyleRoss/node-lambda-log?style=for-the-badge)](https://codeclimate.com/github/KyleRoss/node-lambda-log) [![license](https://img.shields.io/github/license/KyleRoss/node-lambda-log.svg?style=for-the-badge)](https://github.com/KyleRoss/node-lambda-log/blob/master/LICENSE) [![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/KyleRoss/node-lambda-log?style=for-the-badge)](https://codeclimate.com/github/KyleRoss/node-lambda-log) [![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/KyleRoss/node-lambda-log?style=for-the-badge)](https://www.codefactor.io/repository/github/kyleross/node-lambda-log) [![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/lambda-log?style=for-the-badge)](https://snyk.io/advisor/npm-package/lambda-log)
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

@@ -8,8 +8,9 @@ [![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors-)

A [Node.js package](https://www.npmjs.com/package/lambda-log) to facilitate and enforce logging standards from processes and applications running within Lambda Functions, various AWS Services, and wherever JSON logs are desired. Lambda Log formats your log messages as JSON for simple parsing and filtering within tools such as CloudWatch Logs. Supports **Node 10+**.
LambdaLog is a [Node.js package](https://www.npmjs.com/package/lambda-log) 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._
> This module is not just for Lambda! You can use this is many different environments that support reading JSON from logs. While the name remains `lambda-log`, it's really a universal JSON logger.
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 others out there, but seemed to be convoluted, included more functionality than needed, not maintained, or not configurable enough. I created lambda-log to include the important functionality from other loggers, but still keeping it simple with minimal dependencies.
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.

@@ -26,3 +27,3 @@ ### Features

- Well documented, commented, and maintained source code.
- Over 1 million downloads and more than 20k weekly downloads.
- Over 1.5 million downloads and more than 35k weekly downloads.
- Small footprint.

@@ -32,3 +33,3 @@

Version 3.0.0 of Lambda Log brings a bunch of changes, new features, and a [new website](https://lambdalog.js.org).
Version 3.0.0 of Lambda Log brings a bunch of changes, new features, and a [new website](https://lambdalog.dev).

@@ -64,3 +65,3 @@ **Broad Changes:**

Documentation for Lambda Log has moved to our [new website](https://lambdalog.js.org).
Documentation for Lambda Log has moved to our [new website](https://lambdalog.dev).

@@ -71,3 +72,3 @@

See [Development Documentation](https://lambdalog.js.org/docs/development).
See [Development Documentation](https://lambdalog.dev/docs/latest/development).

@@ -78,3 +79,3 @@

See [Contributing Documentation](https://lambdalog.js.org/docs/contributing).
See [Contributing Documentation](https://lambdalog.dev/docs/latest/contributing).

@@ -81,0 +82,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc