Skip to content

Latest commit

 

History

History

nightingale-slack

nightingale-slack

Slack handler for nightingale

Install

npm install --save nightingale nightingale-slack

Usage

import { configure, Level } from 'nightingale';
import { SlackHandler } from 'nightingale-slack';

const slackErrorConfig = {
  webhookUrl: string,
  channel: ?string,
  username: ?string,
  iconUrl: ?string,
  iconEmoji: ?string,
};

configure([
  { handlers: [new SlackHandler(slackErrorConfig, Level.ERROR)]
])