commit | 4d381fccb0be041ba68e2b8ffcbe678cbdf8d70d | [log] [tgz] |
---|---|---|
author | Sridhar Ratnakumar <srid@srid.ca> | Mon Jun 29 03:19:59 2015 |
committer | Sridhar Ratnakumar <srid@srid.ca> | Mon Jun 29 03:19:59 2015 |
tree | cc1e82abe8661548178fdb930a2b8f173d7fb580 | |
parent | d88c762aa1508b80747495d1743381c27685b428 [diff] |
Modernize Dockerfile to use the golang image
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/...