bugsnag

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

bugsnag module configures bugsnag and modifies the logger so logger.Error logs to bugsnag as well.

Index

Constants

This section is empty.

Variables

View Source
var AppVersion = ""

AppVersion is set via a build flag

Functions

This section is empty.

Types

type Config

type Config struct {
	Bugsnag *struct {
		APIKey string `json:"api_key"`
	} `json:"bugsnag"`
}

type ErrorStackable

type ErrorStackable interface {
	ErrorStack() string
}

type GetRequestable

type GetRequestable interface {
	GetRequest() *http.Request
}

type Module

type Module struct {
	Logger *logger.Module
	Config *config.Module

	ProjectPackages []string
	// contains filtered or unexported fields
}

func (*Module) Init

func (m *Module) Init(c *service.Config)

func (*Module) Notify

func (m *Module) Notify(err error, rawData ...any)

Notify bugsnag, note that m.Logger.Error calls Notify so Notify musn't call m.Logger.Error

type Printfer

type Printfer func(fmt string, args ...interface{})

func (Printfer) Printf

func (p Printfer) Printf(fmt string, args ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL