record

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(os ...OptionI)

Types

type OptionI

type OptionI interface {
	// contains filtered or unexported methods
}

func WithAttrs

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

func WithContext

func WithContext(ctx context.Context) OptionI

func WithLevel

func WithLevel(level level.Level) OptionI

func WithLogger

func WithLogger(logger *slog.Logger) OptionI

func WithMsg

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

func WithMsgAndAttrs

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

func WithSkip

func WithSkip(skip int) OptionI

func WithSkipNames

func WithSkipNames(skipNames ...string) OptionI

func WithTime

func WithTime(time time.Time) OptionI

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