Skip to content

guptashak90/lambda-monitor-logger

 
 

Repository files navigation

lambda-monitor-logger

Build Status Test Coverage Dependabot Status Dependencies NPM Downloads Semantic-Release Gardener

Logging designed to be used with lambda-monitor

Install

Install with npm:

$ npm install --save lambda-monitor-logger

Usage

const { logger, abbrev } = require('lambda-monitor-logger');

logger.error('Keyboard not found. Press F1 to Resume');
// => ERROR: Keyboard not found. Press F1 to Resume

logger.error(abbrev('some really long text'));
// => ERROR: some ... test

This logger will simply log to console and prefix with the debug level.

The available levels are: debug, info, warning, error, critical.

About

Logging designed to be used with lambda-monitor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%