summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/spf13/viper/experimental_logger.go
blob: 206dad6a0c7363fa43ef2090115a4341e1163efb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
//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
	})
}