commit | a927b6857fc77f4823ab37102e948be667b92bd8 | [log] [tgz] |
---|---|---|
author | Nino Kodabande <nkodabande@suse.com> | Fri Jul 07 19:43:10 2017 |
committer | Nino Kodabande <nkodabande@suse.com> | Fri Jul 07 19:43:10 2017 |
tree | 39a8a63116c7462fa65698129ecf6e70e70e63fa | |
parent | cd5bbb3d4d72ff3e7718b51564c9bb7c59dad770 [diff] | |
parent | 854fb555107b0b54fdddabed1e8415da6c59557b [diff] |
Merge branch 'vsco-fix-log-reopen-with-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.