Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Commit

Permalink
Merge pull request sirupsen#268 from apriendeau/patch-3
Browse files Browse the repository at this point in the history
hook.go matches their gopkg.in/gemnasium/logrus-airbrake-hook.v2 now
  • Loading branch information
sirupsen committed Oct 6, 2015
2 parents 8ae9297 + f811ea4 commit b673bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/hook/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b673bf3

Please sign in to comment.