Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 15-Sep-2021 | - | ||||
ratelimiter/ | H | 15-Sep-2021 | - | 174 | 128 | |
util/ | H | 15-Sep-2021 | - | 49 | 36 | |
watch/ | H | 15-Sep-2021 | - | 562 | 401 | |
winfile/ | H | 15-Sep-2021 | - | 93 | 77 | |
.gitignore | H A D | 15-Sep-2021 | 13 | 2 | 2 | |
.travis.yml | H A D | 15-Sep-2021 | 157 | 17 | 13 | |
CHANGES.md | H A D | 15-Sep-2021 | 1.3 KiB | 47 | 29 | |
Dockerfile | H A D | 15-Sep-2021 | 473 | 20 | 13 | |
LICENSE | H A D | 15-Sep-2021 | 1.1 KiB | 22 | 18 | |
README.md | H A D | 15-Sep-2021 | 1,004 | 37 | 24 | |
appveyor.yml | H A D | 15-Sep-2021 | 243 | 12 | 11 | |
go.mod | H A D | 15-Sep-2021 | 206 | 10 | 7 | |
go.sum | H A D | 15-Sep-2021 | 589 | 7 | 6 | |
tail.go | H A D | 15-Sep-2021 | 10.1 KiB | 441 | 333 | |
tail_posix.go | H A D | 15-Sep-2021 | 132 | 12 | 7 | |
tail_windows.go | H A D | 15-Sep-2021 | 189 | 13 | 8 |
README.md
1[![Build Status](https://travis-ci.org/nxadm/tail.svg?branch=master)](https://travis-ci.org/nxadm/tail) 2 3This is repo is forked from the dormant upstream repo at 4[hpcloud](https://github.com/hpcloud/tail). This fork adds support for go 5modules, updates the dependencies, adds features and fixes bugs. Go 1.9 is 6the oldest compiler release supported. 7 8# Go package for tail-ing files 9 10A Go package striving to emulate the features of the BSD `tail` program. 11 12```Go 13t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) 14if err != nil { 15 panic(err) 16} 17 18for line := range t.Lines { 19 fmt.Println(line.Text) 20} 21``` 22 23See [API documentation](http://godoc.org/github.com/nxadm/tail). 24 25## Log rotation 26 27Tail comes with full support for truncation/move detection as it is 28designed to work with log rotation tools. 29 30## Installing 31 32 go get github.com/nxadm/tail/... 33 34## Windows support 35 36This package [needs assistance](https://github.com/nxadm/tail/labels/Windows) for full Windows support. 37