Skip to content

ParadigmFoundation/go-logrus-bugsnag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logrus Bugsnag

This package is an internal Paradigm preconfigured logrus logger solution that provides integration with bugsnag. The package relies on an environment variable (BUGSNAG_APIKEY) to integrate with bugsnag and the log formatter is pre-configured and may be overridden.

Usage

The package will prepare a logrus logger with bugsnag reporting given the environment variable BUGSNAG_APIKEY is set with a valid key.

    package example

    import "github.com/ParadigmFoundation/go-logrus-bugsnag/logger"

    var mainLogger = logger.New("main")

    func main() {
        mainLogger.Fatal("Crashed :(") // mainLogger can be used as any logrus.Logger
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages