readme: move bugsnag docs

This commit is contained in:
Simon Eskildsen 2015-03-19 11:26:39 -04:00
parent 8be81604a8
commit fa58c5d59f
1 changed files with 3 additions and 6 deletions

View File

@ -74,7 +74,6 @@ import (
"os" "os"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"github.com/Sirupsen/logrus/hooks/airbrake" "github.com/Sirupsen/logrus/hooks/airbrake"
"github.com/Sirupsen/logrus/hooks/bugsnag"
) )
func init() { func init() {
@ -85,11 +84,6 @@ func init() {
// an exception tracker. You can create custom hooks, see the Hooks section. // an exception tracker. You can create custom hooks, see the Hooks section.
log.AddHook(airbrake.NewHook("https://example.com", "xyz", "development")) log.AddHook(airbrake.NewHook("https://example.com", "xyz", "development"))
// Use the Bugsnag hook to report errors that have Error severity or above to
// an exception tracker. You can create custom hooks, see the Hooks section.
bugsnagHook, _ = logrus_bugsnag.NewBugsnagHook()
log.AddHook(bugsnagHook)
// Output to stderr instead of stdout, could also be a file. // Output to stderr instead of stdout, could also be a file.
log.SetOutput(os.Stderr) log.SetOutput(os.Stderr)
@ -204,6 +198,9 @@ func init() {
Send errors to remote syslog server. Send errors to remote syslog server.
Uses standard library `log/syslog` behind the scenes. Uses standard library `log/syslog` behind the scenes.
* [`github.com/Sirupsen/logrus/hooks/bugsnag`](https://github.com/Sirupsen/logrus/blob/master/hooks/bugsnag/bugsnag.go)
Send errors to the Bugsnag exception tracking service.
* [`github.com/nubo/hiprus`](https://github.com/nubo/hiprus) * [`github.com/nubo/hiprus`](https://github.com/nubo/hiprus)
Send errors to a channel in hipchat. Send errors to a channel in hipchat.