Go: Disable logging
To turn off all output from a log.Logger
,
set the output destination to ioutil.Discard
,
a writer on which all calls succeed without doing anything.
log.SetOutput(ioutil.Discard)
To turn off all output from a log.Logger
,
set the output destination to ioutil.Discard
,
a writer on which all calls succeed without doing anything.
log.SetOutput(ioutil.Discard)
Comments