commit | b63ea751e7a4a976f646a471a08ffb782c3f3744 | [log] [tgz] |
---|---|---|
author | Nino Khodabandeh <nino.khodabandeh@hpe.com> | Fri Dec 18 23:24:50 2015 |
committer | Nino Khodabandeh <nino.khodabandeh@hpe.com> | Fri Dec 18 23:24:50 2015 |
tree | 6c6506d9cae4ed1636657a2e80f0dc99f832b44d | |
parent | 9f35a1922c5aa87189631b50c964edae8bb59061 [diff] |
Revert "fix block until exists function"
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/...
This package needs assistance for full Windows support.