commit | dbbd48186485eafe066328eede113b175c16701e | [log] [tgz] |
---|---|---|
author | Nino Khodabandeh <ninok@hpe.com> | Tue May 03 00:24:04 2016 |
committer | Nino Khodabandeh <ninok@hpe.com> | Tue May 03 00:24:04 2016 |
tree | 4806b21b71e0bcfbdac4c493f60610bc0fa0b151 | |
parent | a30252cb686a21eb2d0b98132633053ec2f7f1e5 [diff] |
Make memory to really set and get leackyBucket - Also adds some tests
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.