Debian Codegraph @

pkg/util/log.go

raw
1 package util
2
3 import (
4 "io"
5 "log"
6 )
7
8 // DiscardLogger is a logger that discards all output written to it.
9 // Use this when you need a logger but want to suppress all log output.
10 var DiscardLogger = log.New(io.Discard, "", 0)