Check out example codes for "turn off logging in golang". It will help you in understanding the concepts better.

Code Example 1

log.SetOutput(ioutil.Discard)

Learn ReactJs, React Native from akashmittal.com