1
0
Fork 0
mirror of https://github.com/spf13/viper synced 2025-01-10 20:56:37 +00:00
spf13--viper/experimental_logger.go

12 lines
191 B
Go
Raw Normal View History

//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
})
}