commit | b2940955ab8b26e19d43a43c4da0475dd81bdb56 | [log] [tgz] |
---|---|---|
author | miraclesu <suchuangji@gmail.com> | Mon Jan 25 06:19:23 2016 |
committer | Nino Khodabandeh <ninok@hpe.com> | Fri Apr 15 00:05:39 2016 |
tree | 1c5d45609fa2c4cee5fae351b807e3cc7542cb41 | |
parent | adca23eea0fe20b1e122126bba36bd4207a58e41 [diff] |
fix reader nil pointer
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.