commit | 34db8a6edfc8e86c0d994036a2ea245d624a8558 | [log] [tgz] |
---|---|---|
author | Nino Khodabandeh <[email protected]> | Tue Apr 26 22:47:46 2016 |
committer | Nino Khodabandeh <[email protected]> | Tue Apr 26 22:47:46 2016 |
tree | 543f391629271b4f0657cffdd24c0a630fb16176 | |
parent | b2940955ab8b26e19d43a43c4da0475dd81bdb56 [diff] |
Updates licensing and all the header comments
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.