Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
Godeps/ | H | 05-May-2019 | - | 22 | 18 | |
cmd/gotail/ | H | 05-May-2019 | - | 73 | 58 | |
ratelimiter/ | H | 05-May-2019 | - | 248 | 183 | |
util/ | H | 05-May-2019 | - | 49 | 36 | |
vendor/gopkg.in/ | H | 05-May-2019 | - | 2,328 | 1,657 | |
watch/ | H | 05-May-2019 | - | 562 | 401 | |
winfile/ | H | 05-May-2019 | - | 93 | 77 | |
.gitignore | H A D | 05-May-2019 | 11 | 4 | 2 | |
.travis.yml | H A D | 05-May-2019 | 214 | 20 | 15 | |
CHANGES.md | H A D | 05-May-2019 | 1.3 KiB | 64 | 38 | |
Dockerfile | H A D | 05-May-2019 | 485 | 20 | 13 | |
Makefile | H A D | 05-May-2019 | 154 | 12 | 7 | |
README.md | H A D | 05-May-2019 | 883 | 29 | 18 | |
appveyor.yml | H A D | 05-May-2019 | 245 | 12 | 11 | |
tail.go | H A D | 05-May-2019 | 9 KiB | 400 | 300 | |
tail_posix.go | H A D | 05-May-2019 | 159 | 12 | 7 | |
tail_test.go | H A D | 05-May-2019 | 14.3 KiB | 529 | 399 | |
tail_windows.go | H A D | 05-May-2019 | 188 | 13 | 8 |
README.md
1[![Build Status](https://travis-ci.org/hpcloud/tail.svg)](https://travis-ci.org/hpcloud/tail) 2[![Build status](https://ci.appveyor.com/api/projects/status/vrl3paf9md0a7bgk/branch/master?svg=true)](https://ci.appveyor.com/project/Nino-K/tail/branch/master) 3 4# Go package for tail-ing files 5 6A Go package striving to emulate the features of the BSD `tail` program. 7 8```Go 9t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) 10for line := range t.Lines { 11 fmt.Println(line.Text) 12} 13``` 14 15See [API documentation](http://godoc.org/github.com/hpcloud/tail). 16 17## Log rotation 18 19Tail comes with full support for truncation/move detection as it is 20designed to work with log rotation tools. 21 22## Installing 23 24 go get github.com/hpcloud/tail/... 25 26## Windows support 27 28This package [needs assistance](https://github.com/hpcloud/tail/labels/Windows) for full Windows support. 29