Package list golang-github-go-kit-kit / lintian-fixes/main log / nop_logger.go
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

nop_logger.go @lintian-fixes/mainraw · 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 }