luet/vendor/github.com/hpcloud/tail
Ettore Di Giacinto 420186b7db
Switch to go mod
2019-11-10 18:05:28 +01:00
..
ratelimiter Switch to go mod 2019-11-10 18:05:28 +01:00
util update vendor/ 2019-06-05 19:14:29 +02:00
watch Switch to go mod 2019-11-10 18:05:28 +01:00
winfile update vendor/ 2019-06-05 19:14:29 +02:00
.gitignore update vendor/ 2019-06-05 19:14:29 +02:00
.travis.yml Switch to go mod 2019-11-10 18:05:28 +01:00
appveyor.yml update vendor/ 2019-06-05 19:14:29 +02:00
CHANGES.md update vendor/ 2019-06-05 19:14:29 +02:00
Dockerfile update vendor/ 2019-06-05 19:14:29 +02:00
LICENSE.txt update vendor/ 2019-06-05 19:14:29 +02:00
Makefile update vendor/ 2019-06-05 19:14:29 +02:00
README.md Switch to go mod 2019-11-10 18:05:28 +01:00
tail_posix.go update vendor/ 2019-06-05 19:14:29 +02:00
tail_windows.go update vendor/ 2019-06-05 19:14:29 +02:00
tail.go Switch to go mod 2019-11-10 18:05:28 +01:00

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.