Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 15-Oct-2021 | - | ||||
ratelimiter/ | H | 15-Oct-2021 | - | 174 | 128 | |
util/ | H | 15-Oct-2021 | - | 49 | 36 | |
watch/ | H | 15-Oct-2021 | - | 562 | 401 | |
winfile/ | H | 15-Oct-2021 | - | 93 | 77 | |
.gitignore | H A D | 15-Oct-2021 | 17 | 5 | 3 | |
.travis.yml | H A D | 15-Oct-2021 | 214 | 20 | 15 | |
CHANGES.md | H A D | 15-Oct-2021 | 1.3 KiB | 64 | 38 | |
Dockerfile | H A D | 15-Oct-2021 | 485 | 20 | 13 | |
Makefile | H A D | 15-Oct-2021 | 154 | 12 | 7 | |
README.md | H A D | 15-Oct-2021 | 821 | 31 | 18 | |
appveyor.yml | H A D | 15-Oct-2021 | 245 | 12 | 11 | |
go.mod | H A D | 15-Oct-2021 | 250 | 11 | 8 | |
go.sum | H A D | 15-Oct-2021 | 674 | 8 | 7 | |
tail.go | H A D | 15-Oct-2021 | 12.7 KiB | 520 | 387 | |
tail_posix.go | H A D | 15-Oct-2021 | 426 | 24 | 18 | |
tail_windows.go | H A D | 15-Oct-2021 | 191 | 13 | 8 |
README.md
1 2**NOTE**: This fork is currently being maintained for use in the promtail agent of the [Loki](https://github.com/grafana/loki) project. 3 4Use outside of that context is not tested or supported. 5 6# Go package for tail-ing files 7 8A Go package striving to emulate the features of the BSD `tail` program. 9 10```Go 11t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) 12for line := range t.Lines { 13 fmt.Println(line.Text) 14} 15``` 16 17See [API documentation](http://godoc.org/github.com/hpcloud/tail). 18 19## Log rotation 20 21Tail comes with full support for truncation/move detection as it is 22designed to work with log rotation tools. 23 24## Installing 25 26 go get github.com/hpcloud/tail/... 27 28## Windows support 29 30This package [needs assistance](https://github.com/hpcloud/tail/labels/Windows) for full Windows support. 31