Skip to content

Commit

Permalink
feat: experimental logger
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark committed Jan 1, 2022
1 parent b13f096 commit 5924acc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions experimental_logger.go
@@ -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
})
}

0 comments on commit 5924acc

Please sign in to comment.