commit | 89ee1afdf50885b4fbfb931793b5030b5682e4f0 | [log] [tgz] |
---|---|---|
author | xuzixx <wxyahoo@gmail.com> | Sun Mar 05 10:55:54 2017 |
committer | xuzixx <wxyahoo@gmail.com> | Sun Mar 05 10:55:54 2017 |
tree | 2143b7237efd0593ab0a595ecddf962a248edfc5 | |
parent | faf842bde7ed83bbc3c65a2c454fae39bc29a95f [diff] |
Issue 111: TestReSeekInotify failed if "case fsnotify.Chmod" logic before "case fsnotify.Rename" always `return changes.NotifyDeleted()` Test case pass: macOs 10.11.6 + go 1.6.2 Centos 6.4 + go 1.8
A Go package striving to emulate the features of the BSD tail
program.
t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) for line := range t.Lines { fmt.Println(line.Text) }
See API documentation.
Tail comes with full support for truncation/move detection as it is designed to work with log rotation tools.
go get github.com/hpcloud/tail/...
This package needs assistance for full Windows support.