sentryhook

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConverter

func DefaultConverter(entry *logrus.Entry, event *sentry.Event, hub *sentry.Hub)

Types

type Converter

type Converter func(entry *logrus.Entry, event *sentry.Event, hub *sentry.Hub)

type Hook

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

func New

func New(levels []logrus.Level, options ...Option) Hook

func (Hook) Fire

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

func (Hook) Levels

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

type Option

type Option func(h *Hook)

func WithConverter

func WithConverter(c Converter) Option

func WithExtra

func WithExtra(extra map[string]interface{}) Option

func WithHub

func WithHub(hub *sentry.Hub) Option

func WithTags

func WithTags(tags map[string]string) Option

Jump to

Keyboard shortcuts

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