This part will teach you how to send information from a Go program to the logging service and therefore to system log files. Despite the obvious fact that it is good to keep information stored, log files are necessary for server processes because there is no other way for a server process to send information to the outside world, as it has no Terminal to send any output.
Log files are important and you should not underestimate the value of the information stored in them. Log files should be the first place to look for help when strange things start happening on a Unix machine.
Generally speaking, using a log file is better than displaying the output on the screen for two reasons: first, the output does not get lost, as it is stored on a file, and second, you can search and process log files using Unix tools, such as grep(1), awk(1), and sed(1), which cannot be...