Skip to content

Commit

Permalink
doc: fix logrus link (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsquest authored and morningvera committed Jan 9, 2020
1 parent 6a071bc commit 7fe3c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ The [`Unpack()`](https://godoc.org/github.com/rotisserie/eris#Unpack) method ret

## Logging errors with more control

While `eris` supports logging errors with Go's `fmt` package, it's often advantageous to use the provided string and JSON formatters instead. These methods provide much more control over the error output and should work seamlessly with whatever logging package you choose. The example below shows how to integrate `eris` with (logrus)[https://github.com/sirupsen/logrus].
While `eris` supports logging errors with Go's `fmt` package, it's often advantageous to use the provided string and JSON formatters instead. These methods provide much more control over the error output and should work seamlessly with whatever logging package you choose. The example below shows how to integrate `eris` with [logrus](https://github.com/sirupsen/logrus).

```golang
var fields log.Fields
Expand Down Expand Up @@ -178,4 +178,4 @@ Released under the [MIT License].
[chat-img]: https://img.shields.io/discord/659952923073183749
[chat]: https://discordapp.com/channels/659952923073183749/659952923073183756
[awesome-img]: https://awesome.re/mentioned-badge.svg
[awesome]: https://github.com/avelino/awesome-go#error-handling
[awesome]: https://github.com/avelino/awesome-go#error-handling

0 comments on commit 7fe3c59

Please sign in to comment.