mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-27 14:16:39 +00:00
12 lines
191 B
Go
12 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
|
||
|
})
|
||
|
}
|