Go to file
Sridhar Ratnakumar b1f6c8f553 Merge pull request #53 from wagerlabs/v1
Single inotify instance with multiple watchers
2015-07-03 14:23:58 -07:00
cmd/gotail add -max param to gotail utility 2014-05-16 18:10:04 -07:00
ratelimiter include License file of original code 2014-04-29 19:56:11 -07:00
util replace the alarmist panic with Fatal 2013-10-11 18:19:43 -07:00
watch minor 2015-07-03 16:53:13 +02:00
winfile add FILE_SHARE_DELETE flag when opening file 2014-07-28 16:38:02 +03: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 Use stable version of fsnotify 2015-06-28 20:23:06 -07:00
Dockerfile Modernize Dockerfile to use the golang image 2015-06-28 20:19:59 -07:00
LICENSE.txt add license and copyright 2013-01-07 12:54:49 -08:00
Makefile Fix 'make fulltest' for newer docker versions 2015-06-28 20:15:57 -07:00
README.md add build status to README 2014-03-21 22:02:52 -07:00
deps.json Fix tomb import 2014-06-14 23:39:34 -07:00
tail.go use the single tracker instance 2015-07-03 16:53:42 +02:00
tail_posix.go support freebsd, like darwin 2014-10-08 12:37:29 +03:00
tail_test.go use the single tracker instance 2015-07-03 16:53:42 +02:00
tail_windows.go add FILE_SHARE_DELETE flag when opening file 2014-07-28 16:38:02 +03: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/...