About logging

All Unix machines have a separate server process for logging log files. On macOS machines, the name of the process is syslogd(8). On the other hand, most Linux machines use rsyslogd(8), which is an improved and more reliable version of syslogd(8), which was the original Unix system utility for message logging.

However, despite the Unix variant you are using, or the name of the server process used for logging, logging works the same way on every Unix machine and therefore does not affect the Go code that you will write.

The best way to watch one or more log files is with the help of the tail(1) utility, followed by the -f flag and the name of the log file you want to watch. The -f flag tells tail(1) to wait for additional data. ...

Get Go Systems Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.