ceph-csi/vendor/github.com/hpcloud/tail
Madhu Rajanna d5a0606c33 Migrate from dep to go module
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-03-17 10:44:07 +00:00
..
ratelimiter vendor update for E2E framework 2019-06-04 11:39:42 +05:30
util vendor update for E2E framework 2019-06-04 11:39:42 +05:30
watch vendor update for E2E framework 2019-06-04 11:39:42 +05:30
winfile vendor update for E2E framework 2019-06-04 11:39:42 +05:30
.gitignore Migrate from dep to go module 2020-03-17 10:44:07 +00:00
.travis.yml Migrate from dep to go module 2020-03-17 10:44:07 +00:00
appveyor.yml Migrate from dep to go module 2020-03-17 10:44:07 +00:00
CHANGES.md Migrate from dep to go module 2020-03-17 10:44:07 +00:00
Dockerfile Migrate from dep to go module 2020-03-17 10:44:07 +00:00
LICENSE.txt vendor update for E2E framework 2019-06-04 11:39:42 +05:30
Makefile Migrate from dep to go module 2020-03-17 10:44:07 +00:00
README.md Migrate from dep to go module 2020-03-17 10:44:07 +00:00
tail_posix.go vendor update for E2E framework 2019-06-04 11:39:42 +05:30
tail_windows.go vendor update for E2E framework 2019-06-04 11:39:42 +05:30
tail.go vendor update for E2E framework 2019-06-04 11:39:42 +05:30

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.