goblin/vendor/github.com/spf13/viper/experimental_logger.go

12 lines
191 B
Go
Raw Normal View History

2023-09-07 20:09:20 +00:00
//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
})
}