Codebase list golang-github-go-kit-kit / 10ce6cf log / nop_logger.go
10ce6cf

Tree @10ce6cf (Download .tar.gz)

nop_logger.go @10ce6cfraw · history · blame

1
2
3
4
5
6
7
8
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 }