commit | cd5bbb3d4d72ff3e7718b51564c9bb7c59dad770 | [log] [tgz] |
---|---|---|
author | Nino Kodabande <nkodabande@suse.com> | Fri Jul 07 19:19:11 2017 |
committer | GitHub <noreply@github.com> | Fri Jul 07 19:19:11 2017 |
tree | 04df4a47641ea5ac5a5d97c3406fdb3df45a7750 | |
parent | 2b56f8711f06afb08646f5360e16312762b7cca3 [diff] | |
parent | 89ee1afdf50885b4fbfb931793b5030b5682e4f0 [diff] |
Merge pull request #112 from xuzixx/master Issue 111: TestReSeekInotify failed
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.