Use the new logger facility in the code

Replace all the old accorrences of fmt.Println() with the
appropriate logger function.