forked from mirror/logrus
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
|
#### 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()
|
||||||
|
|
Loading…
Reference in New Issue