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.
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)