This client is used to send messages using a slack webhook url.
go get github.com/Clarilab/slacklogger/v2
import "github.com/Clarilab/slacklogger/v2"
webhookURL := "https://hooks.slack.com/..."
environment := "development"
isDebug := false
slacker := slacklogger.NewSlackLogger(webhookURL, environment, isDebug)
slacker.Log("Something weird")
// this will result in: env=development Something weird
webhookURL := "https://hooks.slack.com/..."
environment := ""
isDebug := false
message := "Hello World!"
slacklogger.LogWithURL(message, webhookURL, environment, isDebug)
// this will result in: Hello World!
If isDebug is set to true, it will print to stdout instead.