Documentation
¶
Index ¶
- func Handle(options ...Option)
- type Option
- func WithAttrs(attrs ...slog.Attr) Option
- func WithContext(ctx context.Context) Option
- func WithLevel(level level.Level) Option
- func WithLogger(logger *slog.Logger) Option
- func WithMsg(format string, args ...any) Option
- func WithMsgAndAttrs(format string, argsAndAttrs ...any) Option
- func WithSkip(skip int) Option
- func WithSkipNames(skipNames ...string) Option
- func WithTime(time time.Time) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v2.0.9
type Option = optionutil.I[Options]
func WithContext ¶
func WithLogger ¶
func WithMsgAndAttrs ¶
func WithSkipNames ¶
Click to show internal directories.
Click to hide internal directories.