logsentry

package
v3.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSentryOutputMiddleware

func GetSentryOutputMiddleware(hub *sentry.Hub) func(io.Writer) io.Writer

GetSentryOutputMiddleware returns a zerolog.LevelWriter wrapper that sends any message above "warning" level to the given sentry hub

Types

type SentryWriter

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

SentryWriter ...

func (SentryWriter) Write

func (l SentryWriter) Write(p []byte) (n int, err error)

Write ...

func (SentryWriter) WriteLevel

func (l SentryWriter) WriteLevel(level zerolog.Level, p []byte) (int, error)

WriteLevel implements zerolog.LevelWriter interface

Jump to

Keyboard shortcuts

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