sentry

package
v3.8.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

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

func NewHook

func NewHook(client *sentry.Client, levels ...logrus.Level) (*Hook, error)

func (*Hook) AddTag

func (hook *Hook) AddTag(key, value string)

func (*Hook) Fire

func (hook *Hook) Fire(entry *logrus.Entry) error

func (*Hook) Flush

func (hook *Hook) Flush()

func (*Hook) Levels

func (hook *Hook) Levels() []logrus.Level

func (*Hook) SetEnvironment

func (hook *Hook) SetEnvironment(environment string)

func (*Hook) SetFlushTimeout

func (hook *Hook) SetFlushTimeout(timeout time.Duration)

func (*Hook) SetPrefix

func (hook *Hook) SetPrefix(prefix string)

func (*Hook) SetRelease

func (hook *Hook) SetRelease(release string)

func (*Hook) SetTags

func (hook *Hook) SetTags(tags map[string]string)

Jump to

Keyboard shortcuts

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