Go to file
Sridhar Ratnakumar d21b644dea Merge pull request #26 from ActiveState/update_fsnotify
update fsnotify to latest
2014-04-12 17:06:04 -07:00
cmd/gotail run 'go fmt' (and fix 'make fmt' in Makefile) 2013-11-13 17:38:23 -08:00
util replace the alarmist panic with Fatal 2013-10-11 18:19:43 -07:00
watch add copyright statements 2014-04-12 16:59:40 -07:00
.gitignore remove logyard references and update README 2012-10-17 11:56:54 -07:00
.travis.yml make travis config work 2014-03-21 22:32:20 -07:00
CHANGES.md update fsnotify to latest 2014-04-12 17:02:59 -07:00
Dockerfile fulltest should be run on saucy image 2014-04-12 17:02:34 -07:00
LICENSE.txt add license and copyright 2013-01-07 12:54:49 -08:00
Makefile fulltest should be run on saucy image 2014-04-12 17:02:34 -07:00
README.md add build status to README 2014-03-21 22:02:52 -07:00
deps.json update fsnotify to latest 2014-04-12 17:02:59 -07:00
rate.go add copyright statements 2014-04-12 16:59:40 -07:00
tail.go If specified the MaxLineSize, then set to the bufio.reader MaxLineSize. 2014-04-06 09:48:37 +09:00
tail_test.go If specified the MaxLineSize, then set to the bufio.reader MaxLineSize. 2014-04-06 09:48:37 +09:00

README.md

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