mirror of https://github.com/sirupsen/logrus.git
hook.go matches their gopkg.in/gemnasium/logrus-airbrake-hook.v2 now
This commit is contained in:
parent
8ae9297f36
commit
f811ea43df
|
@ -2,14 +2,14 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/gemnasium/logrus-airbrake-hook"
|
"gopkg.in/gemnasium/logrus-airbrake-hook.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logrus.New()
|
var log = logrus.New()
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
log.Formatter = new(logrus.TextFormatter) // default
|
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() {
|
func main() {
|
||||||
|
|
Loading…
Reference in New Issue