csi-driver-nfs/vendor/github.com/nxadm/tail
Pierre Prinetti 6abb111ac6
Bump k8s to v.0.22.3
Fully address CVE-2021-3121 in the process.
2021-11-15 14:59:23 +01:00
..
ratelimiter Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
util Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
watch Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
winfile Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
.gitignore Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
.travis.yml Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
CHANGES.md Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
Dockerfile Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
LICENSE Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
README.md Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
appveyor.yml Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
go.mod Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
go.sum Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
tail.go Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
tail_posix.go Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00
tail_windows.go Bump k8s to v.0.22.3 2021-11-15 14:59:23 +01:00

README.md

Build Status

This is repo is forked from the dormant upstream repo at hpcloud. This fork adds support for go modules, updates the dependencies, adds features and fixes bugs. Go 1.9 is the oldest compiler release supported.

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})
if err != nil {
    panic(err)
}

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/nxadm/tail/...

Windows support

This package needs assistance for full Windows support.