Skip to content

tg/slack15

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages