logs-notifications

0.0.3 • Public • Published

Logs notifications

Send logs message to notifications services or to console.log setting environment variables.

Install

npm install logs-notifications

Environment variables

To send to slack.com you need set the environment variable

export SLACK_TOKEN="slack-token"

Without defined variables the default output is the console.log.

Ignore all messages when

NODE_ENV = 'test'

Usage

var log = require('logs-notifications');
log('hello from logs-notifications');

Readme

Keywords

none

Package Sidebar

Install

npm i logs-notifications

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • juanpablo