commit | a1dbeea552b7c8df4b542c66073e393de198a800 | [log] [tgz] |
---|---|---|
author | sergei-utinski <[email protected]> | Mon May 14 19:44:41 2018 |
committer | GitHub <[email protected]> | Mon May 14 19:44:41 2018 |
tree | 537fe4a013512d58365949c569190d3e2826b93d | |
parent | 37f4271387456dd1bf82ab1ad9229f060cc45386 [diff] | |
parent | 000912af8de2d2b9d184786b4cf4c3542b7884e5 [diff] |
Merge pull request #138 from vsco/ljk/fix-fsnotify Fix fsnotify repository relocation
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.