logsentry

package
v4.0.0-...-7e265f1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 6 Imported by: 0

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