golang disable logging code example Example: turn off logging in golang log.SetOutput(ioutil.Discard)