feat: experimental logger

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2022-01-01 18:49:14 +01:00 committed by Márk Sági-Kazár
parent b13f0963f6
commit 5924acc506
1 changed files with 11 additions and 0 deletions

11
experimental_logger.go Normal file
View File

@ -0,0 +1,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
})
}