logrus_bugsnag

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBugsnagUnconfigured = gerrors.New("bugsnag must be configured before installing this logrus hook")

ErrBugsnagUnconfigured is returned if NewBugsnagHook is called before bugsnag.Configure. Bugsnag must be configured before the hook.

Functions

func NewBugsnagHook

func NewBugsnagHook() (*bugsnagHook, error)

NewBugsnagHook initializes a logrus hook which sends exceptions to an exception-tracking service compatible with the Bugsnag API. Before using this hook, you must call bugsnag.Configure(). The returned object should be registered with a log via `AddHook()`

Entries that trigger an Error, Fatal or Panic should now include an "error" field to send to Bugsnag.

Types

type ErrBugsnagSendFailed

type ErrBugsnagSendFailed struct {
	// contains filtered or unexported fields
}

ErrBugsnagSendFailed indicates that the hook failed to submit an error to bugsnag. The error was successfully generated, but `bugsnag.Notify()` failed.

func (ErrBugsnagSendFailed) Error

func (e ErrBugsnagSendFailed) Error() string

Jump to

Keyboard shortcuts

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