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