tag | c4f2e7a0accdb394bc946c1082a415f09d311ed6 | |
---|---|---|
tagger | Sridhar Ratnakumar <srid@srid.ca> | Fri Jul 03 21:21:07 2015 |
object | 15e71d383e1abc8bc244e1fe085f0ed235bdc412 |
v0
commit | 15e71d383e1abc8bc244e1fe085f0ed235bdc412 | [log] [tgz] |
---|---|---|
author | Sridhar Ratnakumar <srid@srid.ca> | Mon Jun 29 03:23:06 2015 |
committer | Sridhar Ratnakumar <srid@srid.ca> | Mon Jun 29 03:23:06 2015 |
tree | c4870bc532ed5c7dfd5571a4e072cb4f4f001104 | |
parent | 4d381fccb0be041ba68e2b8ffcbe678cbdf8d70d [diff] |
Use stable version of fsnotify fixes #46
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/...