github.com/vipernet-xyz/tendermint-core@v0.32.0/libs/log/nop_logger.go (about) 1 package log 2 3 type nopLogger struct{} 4 5 // Interface assertions 6 var _ Logger = (*nopLogger)(nil) 7 8 // NewNopLogger returns a logger that doesn't do anything. 9 func NewNopLogger() Logger { return &nopLogger{} } 10 11 func (nopLogger) Info(string, ...interface{}) {} 12 func (nopLogger) Debug(string, ...interface{}) {} 13 func (nopLogger) Error(string, ...interface{}) {} 14 15 func (l *nopLogger) With(...interface{}) Logger { 16 return l 17 }