VictoriaMetrics/vendor/github.com/go-kit/log/nop_logger.go
2021-09-27 18:01:46 +03:00

8 lines
206 B
Go

package log
type nopLogger struct{}
// NewNopLogger returns a logger that doesn't do anything.
func NewNopLogger() Logger { return nopLogger{} }
func (nopLogger) Log(...interface{}) error { return nil }