forked from mirror/logrus
Merge pull request #268 from apriendeau/patch-3
hook.go matches their gopkg.in/gemnasium/logrus-airbrake-hook.v2 now
This commit is contained in:
commit
b673bf363d
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue