record

package
v2.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(options ...Option)

Types

type Option added in v2.0.9

type Option = optionutil.I[Options]

func WithAttrs

func WithAttrs(attrs ...slog.Attr) Option

func WithContext

func WithContext(ctx context.Context) Option

func WithLevel

func WithLevel(level level.Level) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

func WithMsg

func WithMsg(format string, args ...any) Option

func WithMsgAndAttrs

func WithMsgAndAttrs(format string, argsAndAttrs ...any) Option

func WithSkip

func WithSkip(skip int) Option

func WithSkipNames

func WithSkipNames(skipNames ...string) Option

func WithTime

func WithTime(time time.Time) Option

type Options

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

Jump to

Keyboard shortcuts

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