mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
5924acc506
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
11 lines
191 B
Go
11 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
|
|
})
|
|
}
|