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

..15-Sep-2021-

ratelimiter/H15-Sep-2021-174128

util/H15-Sep-2021-4936

watch/H15-Sep-2021-562401

winfile/H15-Sep-2021-9377

.gitignoreH A D15-Sep-202113 22

.travis.ymlH A D15-Sep-2021157 1713

CHANGES.mdH A D15-Sep-20211.3 KiB4729

DockerfileH A D15-Sep-2021473 2013

LICENSEH A D15-Sep-20211.1 KiB2218

README.mdH A D15-Sep-20211,004 3724

appveyor.ymlH A D15-Sep-2021243 1211

go.modH A D15-Sep-2021206 107

go.sumH A D15-Sep-2021589 76

tail.goH A D15-Sep-202110.1 KiB441333

tail_posix.goH A D15-Sep-2021132 127

tail_windows.goH A D15-Sep-2021189 138

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