MCPcopy
hub / github.com/spf13/viper / WithLogger

Function WithLogger

logger.go:9–13  ·  view source on GitHub ↗

WithLogger sets a custom logger.

(l *slog.Logger)

Source from the content-addressed store, hash-verified

7
8// WithLogger sets a custom logger.
9func WithLogger(l *slog.Logger) Option {
10 return optionFunc(func(v *Viper) {
11 v.logger = l
12 })
13}
14
15type discardHandler struct{}
16

Callers

nothing calls this directly

Calls 1

optionFuncFuncType · 0.85

Tested by

no test coverage detected