Tobias von Dewitz 75fda08e43 added periodic reconnect to nats | пре 6 година | |
---|---|---|
.. | ||
ratelimiter | пре 6 година | |
util | пре 6 година | |
watch | пре 6 година | |
winfile | пре 6 година | |
CHANGES.md | пре 6 година | |
Dockerfile | пре 6 година | |
LICENSE.txt | пре 6 година | |
Makefile | пре 6 година | |
README.md | пре 6 година | |
appveyor.yml | пре 6 година | |
tail.go | пре 6 година | |
tail_posix.go | пре 6 година | |
tail_windows.go | пре 6 година |
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.