glapi/vendor/github.com/spf13/viper/experimental_logger.go
2023-08-19 17:08:54 +02:00

12 lines
191 B
Go

//go:build viper_logger
// +build viper_logger
package viper
// WithLogger sets a custom logger.
func WithLogger(l Logger) Option {
return optionFunc(func(v *Viper) {
v.logger = l
})
}