types/logger: add Discard helper.

pull/269/head
David Anderson 5 years ago
parent 44434fdc82
commit 96b2f20c5b

@ -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{}) {}

Loading…
Cancel
Save