Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 671 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 671 Bytes

rusrelic Go Reference

Logrus hook for the New Relic Log API.

Installation

go get github.com/abrunner94/rusrelic

Usage

// Specify the EU region with "EU" if necessary and your New Relic License Key
rusrelicClient, _ := rusrelic.NewClient("US", "NEW_RELIC_LICENSE_KEY")
rusrelicHook := rusrelic.NewHook(rusrelicClient, rusrelic.DefaultLevels)

// Add the hook to logrus
log.AddHook(rusrelicHook)