3 type nopLogger struct{}
5 // Interface assertions
6 var _ Logger = (*nopLogger)(nil)
8 // NewNopLogger returns a logger that doesn't do anything.
9 func NewNopLogger() Logger { return &nopLogger{} }
11 func (nopLogger) Info(string, ...interface{}) {}
12 func (nopLogger) Debug(string, ...interface{}) {}
13 func (nopLogger) Error(string, ...interface{}) {}
15 func (l *nopLogger) With(...interface{}) Logger {