squirkle / logrus-raygun-hook

A raygun.io hook for logrus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logrus-raygun-hook

A Raygun.io hook for logrus

Usage

import (
  log "github.com/Sirupsen/logrus"
  "github.com/squirkle/logrus-raygun-hook"
)

func init() {
  log.AddHook(raygun.NewHook("https://api.raygun.io/entries", "yourApiKey", "development"))
}

Project status

Both this logrus hook and the goraygun library are works in progress. Be aware of the possibility of upcoming improvements/API changes.

About

A raygun.io hook for logrus

License:MIT License


Languages

Language:Go 100.0%