Registry / logging / johntdyer-slackrus

johntdyer-slackrus

JSON →
library0.0.0-20230315191314-80bc92dee4fcgogounverified

Package slackrus provides a Slack hook for the logrus logging package, sending log messages to Slack channels.

go get github.com/johntdyer/slackrus
INSTALL
IMPORT
SIG · JOHNTDYER-SLACKRUS
J
johntdyer-slackrus
logginggov0.0.0-20230315191314-80bc92dee4fc
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

slackrus
github.com/johntdyer/slackrus

Configures logrus to send error-level logs to a Slack webhook.

package main import ( "github.com/johntdyer/slackrus" "github.com/sirupsen/logrus" ) func main() { logrus.AddHook(&slackrus.SlackrusHook{ HookURL: "https://hooks.slack.com/services/...", Levels: []logrus.Level{logrus.ErrorLevel}, }) logrus.Error("This error will be sent to Slack") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230315191314-80bc92dee4fclatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Amazon
1
Resources
johntdyer-slackrus — go get johntdyer-slackrus · libregistry