tg / slack15

Slack handler for log15

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slack15 – from log15 to Slack GoDoc

Say hello to Slack handler for log15 and send log messages in Go directly to Slack via incoming webhook.

You will need at least webhook URL to make it working.

Quick start

Pass webhook URL to slack15.Handler or set it up in SLACK_WEBHOOK_URL environmental variable.

log := log15.New()
log.SetHandler(&slack15.Handler{
	URL: "", // pass it here, or not
})
log.Info("Whaam!", "who", "Roy Lichtenstein", "when", 1963)

screenshot

About

Slack handler for log15

License:MIT License


Languages

Language:Go 100.0%