setup

package
v0.0.0-...-c0e68af Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvDebug for enabling debug printing of messages.
	EnvDebug = "SPN_DEBUG"

	// EnvSentryDsn to use for logging sentry-related messages.
	EnvSentryDsn = "SPN_SENTRY_DSN"
)

Variables

This section is empty.

Functions

func Exit

func Exit()

func Exitf

func Exitf(s string, f ...any)

func Flush

func Flush()

Types

type Multihandler

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

func (Multihandler) Enabled

func (h Multihandler) Enabled(ctx context.Context, record slog.Level) bool

func (Multihandler) Handle

func (h Multihandler) Handle(ctx context.Context, record slog.Record) error

func (Multihandler) WithAttrs

func (h Multihandler) WithAttrs(attrs []slog.Attr) slog.Handler

func (Multihandler) WithGroup

func (h Multihandler) WithGroup(name string) slog.Handler

Jump to

Keyboard shortcuts

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