forked from mirror/logrus
removing raygun hook from hooks dir, adding reference in hooks table of main README.md
This commit is contained in:
parent
25bb6a1099
commit
099b1bffe0
|
@ -211,6 +211,7 @@ func init() {
|
|||
| [Slackrus](https://github.com/johntdyer/slackrus) | Hook for Slack chat. |
|
||||
| [Journalhook](https://github.com/wercker/journalhook) | Hook for logging to `systemd-journald` |
|
||||
| [Graylog](https://github.com/gemnasium/logrus-hooks/tree/master/graylog) | Hook for logging to [Graylog](http://graylog2.org/) |
|
||||
| [Raygun](https://github.com/squirkle/logrus-raygun-hook) | Hook for logging to [Raygun.io](http://raygun.io/) |
|
||||
|
||||
#### Level logging
|
||||
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
# [logrus-raygun-hook](https://github.com/squirkle/logrus-raygun-hook)
|
||||
A Raygun.io hook for logrus
|
||||
|
||||
## Usage
|
||||
|
||||
```go
|
||||
import (
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/squirkle/logrus-raygun-hook"
|
||||
)
|
||||
|
||||
func init() {
|
||||
log.AddHook(raygun.NewHook("https://api.raygun.io/entries", "yourApiKey", true))
|
||||
}
|
||||
```
|
||||
|
||||
## Project status
|
||||
Both this logrus hook and the [goraygun](https://github.com/SDITools/goraygun) library are **works in progress**. Be aware of the possibility of upcoming improvements/API changes.
|
Loading…
Reference in New Issue