commit | 854fb555107b0b54fdddabed1e8415da6c59557b | [log] [tgz] |
---|---|---|
author | Nino Kodabande <nkodabande@suse.com> | Fri Jul 07 19:41:52 2017 |
committer | Nino Kodabande <nkodabande@suse.com> | Fri Jul 07 19:41:52 2017 |
tree | 39a8a63116c7462fa65698129ecf6e70e70e63fa | |
parent | cd5bbb3d4d72ff3e7718b51564c9bb7c59dad770 [diff] | |
parent | 2e79377851962f5983a4cd8ccda689920fb6ef9f [diff] |
Resolves merge conflict in inotify
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.