Go to file
Sridhar Ratnakumar 88298d7cf8 Merge pull request #18 from miraclesu/fix_stop_hang
Fix a hang in `Stop` when tailing a non-existent file

Reproducible on linux, but not on mac.
2013-09-23 18:19:18 -07:00
cmd/gotail tail.Location is now the most customizable 2013-08-09 14:53:37 -07:00
watch Merge pull request #18 from miraclesu/fix_stop_hang 2013-09-23 18:19:18 -07:00
.gitignore remove logyard references and update README 2012-10-17 11:56:54 -07:00
CHANGES.md support Follow=false 2013-05-30 13:18:46 -07:00
Dockerfile fulltest: run go install 2013-09-09 03:20:08 +00:00
LICENSE.txt add license and copyright 2013-01-07 12:54:49 -08:00
Makefile fulltest: run go install 2013-09-09 03:20:08 +00:00
README.md update README 2013-08-09 15:15:40 -07:00
rate.go option to limit the rate of reading lines from files 2013-07-11 17:28:18 -07:00
tail.go combine two if conditions 2013-09-24 09:13:19 +08:00
tail_test.go Fixed stop hang & stop err 2013-09-23 15:03:51 +08:00
util.go refactor 2013-09-17 16:54:55 -07:00

README.md

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