• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..15-Oct-2021-

ratelimiter/H15-Oct-2021-174128

util/H15-Oct-2021-4936

watch/H15-Oct-2021-562401

winfile/H15-Oct-2021-9377

.gitignoreH A D15-Oct-202117 53

.travis.ymlH A D15-Oct-2021214 2015

CHANGES.mdH A D15-Oct-20211.3 KiB6438

DockerfileH A D15-Oct-2021485 2013

MakefileH A D15-Oct-2021154 127

README.mdH A D15-Oct-2021821 3118

appveyor.ymlH A D15-Oct-2021245 1211

go.modH A D15-Oct-2021250 118

go.sumH A D15-Oct-2021674 87

tail.goH A D15-Oct-202112.7 KiB520387

tail_posix.goH A D15-Oct-2021426 2418

tail_windows.goH A D15-Oct-2021191 138

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