commit | f3fe9b76bdfc16586c618943070e896ec58ad68c | [log] [tgz] |
---|---|---|
author | Sridhar Ratnakumar <srid@srid.ca> | Fri Jul 03 21:27:12 2015 |
committer | Sridhar Ratnakumar <srid@srid.ca> | Fri Jul 03 21:27:12 2015 |
tree | a8268fe5788c304ac853ab03dee828ed869bfc6d | |
parent | b1f6c8f553957c39d42398211b19ebc33609b643 [diff] |
change log entry for last PR
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/...