Skip to content

abrunner94/rusrelic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)