volcano/vendor/github.com/hpcloud/tail
Jinghui 9c97c7761e dep ensure 2020-02-04 12:55:07 +00:00
..
ratelimiter dep ensure 2020-02-04 12:55:07 +00:00
util Updated vendor. 2019-01-26 16:52:25 +08:00
watch dep ensure 2020-02-04 12:55:07 +00:00
winfile Updated vendor. 2019-01-26 16:52:25 +08:00
.gitignore Updated vendor. 2019-01-26 16:52:25 +08:00
.travis.yml dep ensure 2020-02-04 12:55:07 +00:00
CHANGES.md Updated vendor. 2019-01-26 16:52:25 +08:00
Dockerfile Updated vendor. 2019-01-26 16:52:25 +08:00
LICENSE.txt Updated vendor. 2019-01-26 16:52:25 +08:00
Makefile Updated vendor. 2019-01-26 16:52:25 +08:00
README.md dep ensure 2020-02-04 12:55:07 +00:00
appveyor.yml Updated vendor. 2019-01-26 16:52:25 +08:00
tail.go dep ensure 2020-02-04 12:55:07 +00:00
tail_posix.go Updated vendor. 2019-01-26 16:52:25 +08:00
tail_windows.go Updated vendor. 2019-01-26 16:52:25 +08:00

README.md

Build Status Build status

Go package for tail-ing files

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.

Log rotation

Tail comes with full support for truncation/move detection as it is designed to work with log rotation tools.

Installing

go get github.com/hpcloud/tail/...

Windows support

This package needs assistance for full Windows support.