commit | 4b368d1590196ade29993d6a0896591403180bbd | [log] [tgz] |
---|---|---|
author | Sridhar Ratnakumar <srid@srid.ca> | Fri Jul 03 23:30:24 2015 |
committer | Sridhar Ratnakumar <srid@srid.ca> | Fri Jul 03 23:30:24 2015 |
tree | 55e7a9d2e45bdb5021b7a7b438b194c0a0731bb3 | |
parent | 0bf705ac46a79df710a8b8547edb67f93e93d8e1 [diff] | |
parent | 8772f68b05b939fb5e33f1f56438ad470ae66b2a [diff] |
Merge pull request #56 from ActiveState/travis-gopkg-fix Workaround travis failures around gopkg.in imports. Also use latest Go versions to test.
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/ActiveState/tail/...
This package needs assistance for full Windows support.