| Signed-off-by: Tariq Ibrahim <tariq181290@gmail.com> | ||
|---|---|---|
| .. | ||
| .travis.yml | ||
| LICENSE | ||
| README.md | ||
| bugsnag.go | ||
| dev.yml | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	logrus-bugsnag
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)
}