Skip to content

Commit

Permalink
Update to match new logrus casin
Browse files Browse the repository at this point in the history
  • Loading branch information
springfang committed Jun 3, 2017
1 parent f13d41d commit 9738427
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# logrus-stack 🎯
[![GoDoc](https://godoc.org/github.com/Gurpartap/logrus-stack?status.svg)](https://godoc.org/github.com/Gurpartap/logrus-stack)

logrus-stack provides [facebookgo/stack](https://github.com/facebookgo/stack) integration hook for [Sirupsen/logrus](https://github.com/Sirupsen/logrus).
logrus-stack provides [facebookgo/stack](https://github.com/facebookgo/stack) integration hook for [sirupsen/logrus](https://github.com/sirupsen/logrus).

Instead of setting file, line, and func name values individually, this hook sets "caller" and/or "stack" objects containing file, line and func name.

Expand Down Expand Up @@ -39,7 +39,7 @@ import (
"os"

"github.com/Gurpartap/logrus-stack"
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
)

type Worker struct {
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"os"

"github.com/Sirupsen/logrus"
"github.com/recursionpharma/logrus-stack"
"github.com/sirupsen/logrus"
)

type Worker struct {
Expand Down
2 changes: 1 addition & 1 deletion logrus-stack-hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package logrus_stack
import (
"strings"

"github.com/Sirupsen/logrus"
"github.com/facebookgo/stack"
"github.com/sirupsen/logrus"
)

// NewHook is the initializer for LogrusStackHook{} (implementing logrus.Hook).
Expand Down

0 comments on commit 9738427

Please sign in to comment.