registry/vendor/github.com/Shopify/logrus-bugsnag
Tariq Ibrahim 5223c27422
migrate to go modules from vndr
Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com>
2019-06-19 12:24:07 -07:00
..
.travis.yml migrate to go modules from vndr 2019-06-19 12:24:07 -07:00
bugsnag.go add bugsnag logrus hook 2018-10-25 14:52:10 -07:00
dev.yml migrate to go modules from vndr 2019-06-19 12:24:07 -07:00
LICENSE add bugsnag logrus hook 2018-10-25 14:52:10 -07:00
README.md add bugsnag logrus hook 2018-10-25 14:52:10 -07:00

logrus-bugsnag

Build Status

logrus-bugsnag is a hook that allows Logrus to interface with Bugsnag.

Usage

import (
  log "github.com/sirupsen/logrus"
  "github.com/Shopify/logrus-bugsnag"
  bugsnag "github.com/bugsnag/bugsnag-go"
)

func init() {
  bugsnag.Configure(bugsnag.Configuration{
    APIKey: apiKey,
  })
  hook, err := logrus_bugsnag.NewBugsnagHook()
  logrus.StandardLogger().Hooks.Add(hook)
}