nop_logger.go 206 B

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