|
|
5 lat temu | |
|---|---|---|
| .. | ||
| ratelimiter | 5 lat temu | |
| util | 5 lat temu | |
| watch | 5 lat temu | |
| winfile | 5 lat temu | |
| .gitignore | 5 lat temu | |
| .travis.yml | 5 lat temu | |
| BUILD | 5 lat temu | |
| CHANGES.md | 5 lat temu | |
| Dockerfile | 5 lat temu | |
| LICENSE.txt | 5 lat temu | |
| Makefile | 5 lat temu | |
| README.md | 5 lat temu | |
| appveyor.yml | 5 lat temu | |
| tail.go | 5 lat temu | |
| tail_posix.go | 5 lat temu | |
| tail_windows.go | 5 lat temu | |
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.