@welcom/slack-notifier

1.0.2 • Public • Published

Slack Nofitier

Slack util used to log to Slack.

ENV / CHANNEL ... is used for LOG LEVEL
SLACK_ERROR_WEBHOOK_URL ERROR
SLACK_WEBHOOK_URL INFO, DEBUG

Usage

Set up an Incoming Webhook for errors, and repeat to set up an incoming webook for other notifications.

Add these environment variables to your project

SLACK_ERROR_WEBHOOK_URL='https://hooks.slack.com/services/xxx'
SLACK_WEBHOOK_URL='https://hooks.slack.com/services/xxx'

You can format you message using the Slack Block Kit Builder

Readme

Keywords

none

Package Sidebar

Install

npm i @welcom/slack-notifier

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

5.03 kB

Total Files

13

Last publish

Collaborators

  • bjorn-eric.welcom
  • stefan-h-singer
  • jennieame
  • petterpoucette