File: README.md

package info (click to toggle)
golang-github-shopify-logrus-bugsnag 0.0~git20160517.0.5a46080-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 72 kB
  • ctags: 15
  • sloc: makefile: 2
file content (24 lines) | stat: -rw-r--r-- 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## logrus-bugsnag

[![Build Status](https://travis-ci.org/Shopify/logrus-bugsnag.svg)](https://travis-ci.org/Shopify/logrus-bugsnag)

logrus-bugsnag is a hook that allows [Logrus](https://github.com/Sirupsen/logrus) to interface with [Bugsnag](https://bugsnag.com).

#### Usage

```go
import (
  log "github.com/Sirupsen/logrus"
  "github.com/Shopify/logrus-bugsnag"
  bugsnag "github.com/bugsnag/bugsnag-go"
)

func init() {
  bugsnag.Configure(bugsnag.Configuration{
    APIKey: apiKey,
  })
  hook, err := logrus_bugsnag.NewBugsnagHook()
  logrus.StandardLogger().Hooks.Add(hook)
}
```