summaryrefslogtreecommitdiff
path: root/vendor/github.com/spf13/viper/logger.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/spf13/viper/logger.go')
-rw-r--r--vendor/github.com/spf13/viper/logger.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/vendor/github.com/spf13/viper/logger.go b/vendor/github.com/spf13/viper/logger.go
deleted file mode 100644
index 828042f29..000000000
--- a/vendor/github.com/spf13/viper/logger.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package viper
-
-import (
- "context"
- "log/slog"
-)
-
-// WithLogger sets a custom logger.
-func WithLogger(l *slog.Logger) Option {
- return optionFunc(func(v *Viper) {
- v.logger = l
- })
-}
-
-type discardHandler struct{}
-
-func (n *discardHandler) Enabled(_ context.Context, _ slog.Level) bool {
- return false
-}
-
-func (n *discardHandler) Handle(_ context.Context, _ slog.Record) error {
- return nil
-}
-
-func (n *discardHandler) WithAttrs(_ []slog.Attr) slog.Handler {
- return n
-}
-
-func (n *discardHandler) WithGroup(_ string) slog.Handler {
- return n
-}