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

..03-May-2022-

Godeps/H28-Apr-2016-

cmd/gotail/H28-Apr-2016-

ratelimiter/H28-Apr-2016-

util/H28-Apr-2016-

vendor/gopkg.in/H28-Apr-2016-

watch/H28-Apr-2016-

winfile/H28-Apr-2016-

.gitignoreH A D28-Apr-201611

.travis.ymlH A D28-Apr-2016197

CHANGES.mdH A D28-Apr-20161.3 KiB

DockerfileH A D28-Apr-2016485

MakefileH A D28-Apr-2016154

README.mdH A D28-Apr-2016868

appveyor.ymlH A D28-Apr-2016245

tail.goH A D28-Apr-201610.1 KiB

tail_posix.goH A D28-Apr-2016159

tail_test.goH A D28-Apr-201614.3 KiB

tail_windows.goH A D28-Apr-2016191

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/kohpsf3rvhjhrox6?svg=true)](https://ci.appveyor.com/project/HelionCloudFoundry/tail)
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