hook.go matches their gopkg.in/gemnasium/logrus-airbrake-hook.v2 now

This commit is contained in:
Austin Riendeau 2015-10-06 14:24:51 -06:00
parent 8ae9297f36
commit f811ea43df
1 changed files with 2 additions and 2 deletions

View File

@ -2,14 +2,14 @@ package main
import (
"github.com/Sirupsen/logrus"
"github.com/gemnasium/logrus-airbrake-hook"
"gopkg.in/gemnasium/logrus-airbrake-hook.v2"
)
var log = logrus.New()
func init() {
log.Formatter = new(logrus.TextFormatter) // default
log.Hooks.Add(airbrake.NewHook("https://example.com", "xyz", "development"))
log.Hooks.Add(airbrake.NewHook(123, "xyz", "development"))
}
func main() {