You follow a log with tail -f, it goes quiet in the middle of the night, and you think the app stopped writing. Often the file was just rotated.
The fix is one capital letter:
tail -F /var/log/nginx/access.log
Lowercase -f follows the open file descriptor. When logrotate renames the file, tail keeps watching the old, now unused file. Capital -F follows the name, and retries when the file disappears or is replaced. It is shorthand for --follow=name --retry.
That also helps when you start tail before the log exists yet, for example while a service is still starting. It will wait and pick the file up when it shows up.
The caveat: after a rotation you may see a short notice that the file was replaced, and a few lines can fall between the old and new file. For systemd services, journalctl -f avoids the whole issue.
I would make capital F the default in my fingers for any log that a rotation tool manages. It costs nothing when no rotation happens.
Further reading: tail man page, On this site: journalctl –vacuum-size caps how much log space you keep, On this site: docker logs –since 10m -f shows only what just happened