@welcom/slack-notifier
v1.0.2
Published
Log to slack.
Downloads
4
Keywords
Readme
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