I have some heavily instrumented code that makes use of the log package. Now it\'s come time to turn off the logging, and I can\'t determine how to turn off the
log
type NullWriter int func (NullWriter) Write([]byte) (int, error) { return 0, nil } // ... log.SetOutput(new(NullWriter))