slack-lambda-reporter
v1.0.2
Published
simple aws-lambda slack reporter
Downloads
8
Maintainers
Readme
slack-lambda-reporter
Simple logger for Slack, Made with aws-lambda in mind but works with any Node.js
Install:
npm i slack-lambda-reporter --save
Usage:
const logger = require('slack-lambda-reporter')({
key: process.env.slack,
channel: '#error',
username: 'Voldemort'
})
// simple message
logger.log('Harry Potter is dead!')
// with data
logger.log('Avada Kedavra!', {dobi:'free elf'})