I have some logs being generated using a timed rotating file logger. This logs to a file called
tool.log, and at midnight, moves this to
tool.log.<date> and starts a new
I have a
tail -f tool.log running on the machine to keep an eye on the logs, but at midnight, when
tool.log is renamed to
tail continues to watch the renamed file.
What I'm hoping for is a tool that is similar to
tail, but will continue to monitor the file named
tool.log, rather than following the inode.
Does something like this exist? If not, I can write my own in Python for this purpose.