mirror of https://github.com/sirupsen/logrus.git
readme: add other hook example
This commit is contained in:
parent
9f6d81e31e
commit
7056845d0f
|
@ -55,7 +55,7 @@ seen as a hint you want to add a field, however, you can still use the
|
|||
#### Hooks
|
||||
|
||||
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
|
||||
log = logrus.New()
|
||||
|
|
Loading…
Reference in New Issue