Socket
Socket
Sign inDemoInstall

aws-lambda-log

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aws-lambda-log

A clean and simple logger for lambda


Version published
Maintainers
1
Created

Readme

Source

aws-lambda-log

A clean and simple logger for lambda, with log level

Install

npm install aws-lambda-log --save

Usage

const logger = require('aws-lambda-log');

module.exports = (event, context) => {
  logger.context = context;
  ...
}

Log Level

To set the log level use the environment variable LOG_LEVEL and set its value to [error | warn | info | debug | silly].
Default log level is info;

Keywords

FAQs

Last updated on 25 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc