readme: complete hook example

This commit is contained in:
Simon Eskildsen 2014-03-12 07:59:22 -04:00
parent e469287329
commit 44ead10986
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ tracking service on `Error`, `Fatal` and `Panic` or info to StatsD.
```go
log = logrus.New()
log.Hooks.Add(new(AirbrakeHook))
type AirbrakeHook struct{}