types/logger: add Discard helper.

This commit is contained in:
David Anderson 2020-04-06 19:15:19 -07:00
parent 44434fdc82
commit 96b2f20c5b

View File

@ -38,3 +38,6 @@ func (w funcWriter) Write(p []byte) (int, error) {
w.f("%s", p)
return len(p), nil
}
// Discard is a Logf that throws away the logs given to it.
func Discard(string, ...interface{}) {}