readme: add other hook example

This commit is contained in:
Simon Eskildsen 2014-03-10 20:32:22 -04:00
parent 9f6d81e31e
commit 7056845d0f
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ seen as a hint you want to add a field, however, you can still use the
#### Hooks #### Hooks
You can add hooks for logging levels. For example to send errors to an exception You can add hooks for logging levels. For example to send errors to an exception
tracking service on `Error`, `Fatal` and `Panic`. tracking service on `Error`, `Fatal` and `Panic` or info to StatsD.
```go ```go
log = logrus.New() log = logrus.New()