change log entry for last PR
1 file changed
tree: a8268fe5788c304ac853ab03dee828ed869bfc6d
  1. cmd/
  2. ratelimiter/
  3. util/
  4. watch/
  5. winfile/
  6. .gitignore
  7. .travis.yml
  8. CHANGES.md
  9. deps.json
  10. Dockerfile
  11. LICENSE.txt
  12. Makefile
  13. README.md
  14. tail.go
  15. tail_posix.go
  16. tail_test.go
  17. tail_windows.go
README.md

Build Status

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})
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/ActiveState/tail/...