Skip to content
master
Go to file
Code
This branch is 41 commits ahead of hpcloud:master.

Latest commit

* Travis-CI: cleanup Go version

1. Add ".x" suffix to all Go versions so the latest patched version is
   used
2. Add 1.14.x
3. Sort Go version to put the latest at the top, so the most interesting
   tests are executed earlier by Travis

* Travis-CI: add go_import_path for pre-Go-modules builds
0de700b

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Status

This is repo is forked from the dormant upstream repo at hpcloud. This fork adds support for go modules, updates the dependencies, adds features and fixes bugs. Go 1.9 is the oldest compiler release supported.

Go package for tail-ing files

A Go package striving to emulate the features of the BSD tail program.

t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
if err != nil {
    panic(err)
}

for line := range t.Lines {
    fmt.Println(line.Text)
}

See API documentation.

Log rotation

Tail comes with full support for truncation/move detection as it is designed to work with log rotation tools.

Installing

go get github.com/nxadm/tail/...

Windows support

This package needs assistance for full Windows support.

About

[Revamped] Go package for reading from continously updated files (tail -f)

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.