csi-driver-nfs/vendor/github.com/hpcloud/tail
Jan Wozniak 0e6e8d1926 Update vendor from go modules
$ go mod tidy
$ go mod vendor
2020-02-02 15:55:23 +01:00
..
ratelimiter update vendor files to kube 1.14 2019-04-23 15:42:44 -04:00
util update vendor files to kube 1.14 2019-04-23 15:42:44 -04:00
watch update vendor files to kube 1.14 2019-04-23 15:42:44 -04:00
winfile update vendor files to kube 1.14 2019-04-23 15:42:44 -04:00
.gitignore Update vendor from go modules 2020-02-02 15:55:23 +01:00
.travis.yml Update vendor from go modules 2020-02-02 15:55:23 +01:00
CHANGES.md Update vendor from go modules 2020-02-02 15:55:23 +01:00
Dockerfile Update vendor from go modules 2020-02-02 15:55:23 +01:00
LICENSE.txt update vendor files to kube 1.14 2019-04-23 15:42:44 -04:00
Makefile Update vendor from go modules 2020-02-02 15:55:23 +01:00
README.md Update vendor from go modules 2020-02-02 15:55:23 +01:00
appveyor.yml Update vendor from go modules 2020-02-02 15:55:23 +01:00
tail.go update vendor files to kube 1.14 2019-04-23 15:42:44 -04:00
tail_posix.go update vendor files to kube 1.14 2019-04-23 15:42:44 -04:00
tail_windows.go update vendor files to kube 1.14 2019-04-23 15:42:44 -04: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.