commit | 37f4271387456dd1bf82ab1ad9229f060cc45386 | [log] [tgz] |
---|---|---|
author | Nino Kodabande <nkodabande@suse.com> | Mon Aug 14 16:06:53 2017 |
committer | GitHub <noreply@github.com> | Mon Aug 14 16:06:53 2017 |
tree | 83d25e77dd5bed295c61132d33fb782cd0a7b941 | |
parent | 66928beff07e654d08f02f592e53aaab8df488d5 [diff] |
Update README.md
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.