That doesn't work if the file is continuously being updated by another process (or processes), which is often the case with logfiles. It's only a solution if you are in full control over the single process that's updating the log file. Even if there are two instances of the same program log to the file, the given solution is going to fail.