Skip to content

logrus-bugsnag is a hook that interfaces Logrus with Bugsnag.

License

Notifications You must be signed in to change notification settings

anurag/logrus-bugsnag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

logrus-bugsnag is a hook that interfaces Logrus with Bugsnag.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%