commit | 922a9f6f17960dd65eb9081231069bf84913e1ab | [log] [tgz] |
---|---|---|
author | Jan Dubois <jan.dubois@hpe.com> | Sat Nov 07 00:55:08 2015 |
committer | Jan Dubois <jan.dubois@hpe.com> | Sat Nov 07 00:55:08 2015 |
tree | 088cc5f2a09b8cc26ac24f1c4ef4c6816c0a2343 | |
parent | 06b4cfd99db4fe0111ffec87b591fdc5c6ab82e8 [diff] |
APAAS-2702 rename github.com/ActiveState to github.com/hpcloud
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/...