Tobias von Dewitz 75fda08e43 added periodic reconnect to nats | %!s(int64=6) %!d(string=hai) anos | |
---|---|---|
.. | ||
ratelimiter | %!s(int64=6) %!d(string=hai) anos | |
util | %!s(int64=6) %!d(string=hai) anos | |
watch | %!s(int64=6) %!d(string=hai) anos | |
winfile | %!s(int64=6) %!d(string=hai) anos | |
CHANGES.md | %!s(int64=6) %!d(string=hai) anos | |
Dockerfile | %!s(int64=6) %!d(string=hai) anos | |
LICENSE.txt | %!s(int64=6) %!d(string=hai) anos | |
Makefile | %!s(int64=6) %!d(string=hai) anos | |
README.md | %!s(int64=6) %!d(string=hai) anos | |
appveyor.yml | %!s(int64=6) %!d(string=hai) anos | |
tail.go | %!s(int64=6) %!d(string=hai) anos | |
tail_posix.go | %!s(int64=6) %!d(string=hai) anos | |
tail_windows.go | %!s(int64=6) %!d(string=hai) anos |
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.