hpcloud / tail

Go package for reading from continously updated files (tail -f)
MIT License
2.71k stars 503 forks source link

Add FileStat() #92

Open takebayashi opened 8 years ago

takebayashi commented 8 years ago

Add FileStat(), that may be useful for implementing external log-rotation managers.

Nino-K commented 8 years ago

@takebayashi Thanks for your contribution, could you elaborate a bit on what is this trying to solve or perhaps how should it be used?

Thanks, Nino

takebayashi commented 8 years ago

@Nino-K I'm trying to implement the persistence of the status/position of tailing to resume tailing after restart. File stats info (such as inode value) are needed to detect log-rotations while the tailing process is not running.