forked from mirror/viper
feat: experimental logger
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
b13f0963f6
commit
5924acc506
|
@ -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
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in New Issue