1.0.2 • Published 3 years ago

@welcom/slack-notifier v1.0.2

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

Slack Nofitier

Slack util used to log to Slack.

ENV / CHANNEL ... is used forLOG LEVEL
SLACK_ERROR_WEBHOOK_URLERROR
SLACK_WEBHOOK_URLINFO, 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