github.com/hellobchain/third_party@v0.0.0-20230331131523-deb0478a2e52/go-kit/kit/log/nop_logger.go (about) 1 package log 2 3 type nopLogger struct{} 4 5 // NewNopLogger returns a logger that doesn't do anything. 6 func NewNopLogger() Logger { return nopLogger{} } 7 8 func (nopLogger) Log(...interface{}) error { return nil }